HOLMDEL, N.J. (CBSNewYork/AP) — A former New Jersey school superintendent has admitted that he defecated in a public area while running at another high school’s track and field complex, but he said it only happened once and now he’s preparing to sue.

Authorities had accused Thomas Tramaglini of repeatedly defecating on the track at Holmdel High School, but at a municipal court hearing Wednesday, he only admitted to defecating under the high school’s bleachers.

Tramaglini will have to pay a $500 fine and court costs.

His attorney, Matthew Adams, said that his client suffers from a medical condition that affects his bowel movements when he runs. Adams also disputed police accounts that Tramaglini had defecated at the track on a daily basis.

Adams also said he is filing a notice of claim against Holmdel for circulating his client’s picture.

Tramaglini was the superintendent of the Kenilworth school district before he was charged in April. He eventually resigned after reaching a separation agreement with the district.

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)