A Bethlehem, Pennsylvania, police officer told authorities he was only trying to stay awake when he was caught masturbating in public this week, police said.

Glenn C. Woolard, 35, was heading home from his shift Wednesday morning when he allegedly pulled down his basketball shorts and exposed himself while driving, The Morning Call reported.

A woman driving alongside Woolard reportedly told police that he was “waving it around” and fondling himself in full view of other drivers. That victim was able to get a license plate, leading police to Woolard’s home.

There, Woolard allegedly confessed to that and another incident a week earlier in a Target parking lot, where a woman said his window was down “as if he wanted to be seen,” according to records obtained by Philly.com.