A corrections officer in Arizona rang in the new year behind bars after he was allegedly caught having sex with an inmate while on duty.

Anthony James Marotta, 26, was collared on New Year's Eve in Goodyear, Ariz., after another inmate reported the romp, The Arizona Republic reports. Marotta is accused of receiving oral sex from an unnamed female inmate in the back of a vehicle.

The witness told investigators that she was driving a transportation vehicle at the Arizona State Prison Complex on Dec. 24 when she looked in the rearview mirror and saw Marotta and the other inmate in the back, according to AZFamily.com. The statement provided enough probable cause to arrest Marotta on sex-crime charges.

Marotta immediately resigned and allegedly admitted to the sex act, as well as another one in November, ABC 15 reports.

He's being held on $15,000 bond.