A Pacific man accused of spying on two young girls as they undressed in a changing room at Six Flags has been granted probation in the case.

Jeremy Bates, 20, pleaded guilty to one misdemeanor count of invasion of privacy, according to reports. He originally was charged with felony invasion of privacy of multiple individuals following the incident in August 2012.

A St. Louis County circuit judge placed Bates on two years’ probation and also ordered him to undergo a sex offender evaluation, counseling, and have no contact with the victims.

Bates was employed at the popular amusement park at Eureka when the peeping tom incident occurred Aug. 8, 2012.

Police said the mother of the teen girls spotted Bates watching them change clothing through a gap in a wall and doorframe near the Monsoon Marge’s gift shop inside Six Flags’ Hurricane Harbor water park.

The mother alerted Six Flags staff who called police and provided surveillance video of the man watching the girls, police said.

Police said Bates admitted watching the girls.