For a fifth year in a row, the Massachusetts Lottery set a record for sales, making $986.9 million in profit for the state in the past fiscal year, officials announced Monday.

Estimated sales of $5.231 billion in the fiscal year that ended June 30 eclipsed the previous record of $5.014 billion set last year by $217 million, the Lottery said.

Presenting the sales and profit figures to the Lottery Commission on Monday morning, Executive Director Michael Sweeney said  the record-setting sales figures are "the result of the team effort by Lottery employees and our expansive network of retail partners across the state."

He added, "We're delighted to see that cities and towns, Lottery players and our retailers all saw some great returns again this year."

The roughly $987 million that is expected to be distributed as local aid is also a record, eclipsing the previous record by $1 million.

"To me, this is a mission-driven organization," Treasurer Deborah Goldberg said. "This is about getting funds back to every city and town in the entire state. We're talking about people, we're talking about crossing guards, we're talking about extra aides in the schools, we're talking about true basic local aid."

The sales and profit figures reported Monday are estimates, officials said, and a finalized report on fiscal 2016 is expected to be completed by mid-September.

RELATED: Security guard tasked with protecting T cash found asleep: Report

Setting another record, Lottery retailers earned $299.5 million in commissions and bonuses in fiscal 2016, besting the previous $286.7 million record set the previous year. And the Lottery spent roughly $103.3 million on administrative costs in fiscal 2016, about 2 percent of the agency's total revenue and the lowest of any lottery in the nation.

But the Lottery set one record that Lottery officials aren't necessarily jumping up and down about. The Lottery paid out a record $3.842 billion in prizes last fiscal year — equal to 73.4 percent of all revenue, the highest payout percentage of any lottery in the country, according to Massachusetts officials.

The future for the Lottery, Goldberg said, may be online. Last week, the Senate authorized the Lottery to expand into cyberspace as part of an economic development bill it passed. That authorization will now be part of conference committee negotiations between the House and Senate.

Goldberg late last year cautioned lawmakers that the recent string of record-level Lottery sales will not continue unless the Lottery adapts to compete with the state's growing casino gaming industry and daily fantasy sports contests.

"We absolutely need the authority to be able to move forward. But doing so in a way ... not only protecting the retailers but finding ways to potentially increase their traffic flow, ensuring all the stopgap measures are in place to protect people from compulsive gambling," she said Monday. "Those are two of the most important things to me while we make sure we maintain or increase local aid."