The roommate suspected something was wrong when his dog, a German Shepard mix, was limping and acting skittish around people, so he set up a hidden camera in the apartment he shares with 22-year-old Joshua Werbicki.

The camera revealed Werbicki engaging in a sex act with the animal, police said.

Officers arrested Werbicki on Dec. 27 while he worked as a delivery driver for Papa John’s pizzeria in West Melbourne.

He was charged with felony cruelty to animals and misdemeanor criminal sex act with an animal.

Animal services officers said Florida law permits a court-ordered injunction to prohibit Werbick from having unsupervised contact with other animals, pending the outcome of this case.

It wasn’t clear whether Werbicki remained in police custody as of this weekend.