A state official has been ordered to apologize to Flint residents for her role in the Flint water crisis, MLive reports.

Retired Director of the state Department of Health and Human Services’ Bureau of Epidemiology, Corinne Miller, was ordered to write a letter of apology and perform 300 community service hours.

Miller received her sentence as part of a plea agreement she reached with prosecutors in September. She pleaded no contest to a charge of willful neglect of duty. As part of the deal, Miller also agreed to assist special prosecutors in other Flint water prosecutions.

Her attorney argued that Miller should not be required to apologize, saying it could result in fallout on civil lawsuits that have been filed against her.

But Judge Jennifer M. Manley stood by her sentence on Monday.

Last month, city officials announced the state would stop paying for Flint’s drinking water and end water credits for customers beginning Mar. 1. The changes followed state officials’ declarations that the water quality has improved, but city residents are still being advised not to drink the water unless it has been properly filtered.

“A senior advisor to Governor Rick Snyder has sent Flint’s Interim Chief Financial Officer, David Sabuda, a letter to inform him the credits currently being applied to the water portion of Flint utility customers’ accounts will no longer be provided after February 28, 2017,” Flint spokeswoman Kristin Moore wrote in a press release on Feb. 9. “State officials note the latest 6-month cycle of water testing that had results below the federal action level for the Lead and Copper Rule (LCR).”