A 29-year-old man is facing two criminal charges after authorities say he was spotted by an off-duty police officer masturbating while riding a bicycle in a Macomb County park.

William Benjamin Brown of Warren was arraigned Friday in 41-A District Court in Sterling Heights on two counts of aggravated indecent exposure, according to Macomb County Prosecutor Eric Smith. The charges are a high misdemeanor, punishable by up to two years imprisonment.

The charges stem from two related incidents Aug. 1 in Dodge Park in Sterling Heights, Smith said in a news release.

More:Westland man charged in connection with woman's body found in Hines Park

Smith said an off-duty police officer was jogging on an asphalt trail when she observed a very tall man in with gray pants riding a mountain bike and fondling his genitals in full view of the public. About a half-hour later, another woman observed Brown on his bike with his penis exposed, Smith said.

"The second victim stated that she tried to go in a different direction to avoid the suspect," Smith said. "However, she then saw Brown sitting on a bench with his penis out and masturbating in the open."

Brown remained jailed Monday in lieu of $10,000 surety bond. His next scheduled court appearance is on Sept. 6 for a probable cause hearing.