ST. CLOUD, Minn. (AP) — The former superintendent of the Rocori School District has pleaded guilty to four counts of indecent exposure under a plea deal.

Scott Staska agreed to complete 80 hours of community work service within 60 days and undergo a psychosexual evaluation.

READ MORE: Sign Bearing George Floyd's Name Unveiled At 38th And Chicago

Staska entered his plea Friday in Stearns County court. The St. Cloud Times reports the plea agreement dismisses the remaining 15 counts of indecent exposure.

Staska was accused of exposing himself at stores in St. Cloud and Waite Park between May 2017 and April 2018. Staska pleaded not guilty to all 19 counts in May.

READ MORE: 'It's Bizarre': Southern Minnesota Ghost Town Still Attracting Summer Visitors

The judge ordered Staska to return for sentencing Jan. 31.

Staska had been superintendent since 2002. The Minnesota Association of School Administrators named him the state’s top superintendent in 2010.

MORE NEWS: Sign Bearing George Floyd's Name Unveiled At 38th And Chicago: 'This Is Just Another Step Forward'

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)