A former New Jersey school superintendent pleaded guilty on Wednesday to defecating under the bleachers surrounding a high school’s track.

Thomas Tramaglini, 42, agreed to plead guilty, pay court costs, and cough up a $500 fine while prosecutors agreed to dismiss charges of littering and public lewdness, NJ.com reported.

The former superintendent of Kenilworth Public Schools had been accused of repeatedly defecating on Holmdel High School’s campus, calls which led him to resign from his position.

Tramaglini was suspended from his job in May and asked to go on paid leave after local police discovered he had been responsible for the stream of human feces popping up on school grounds.

The district paid him more than $100,000 between Tramaglini’s suspension in May and his resignation in September.

Tramaglini’s attorney said Wednesday that Tramaglini suffers from “runners diarrhea,” which causes him to have loose bowel movements whenever he runs, and refuted claims from authorities that his client pooped on campus daily.

“There’s no evidence he was ever a serial offender,” attorney Matthew Adams said. “We were ready to go to trial on some of the allegations about certain dates with GPS evidence from his Garmin running watch. That story needs to be told.”