An Indian River County Sheriff’s deputy who was fired on Wednesday reportedly took photos of himself partially naked while on duty at the county courthouse.

Sheriff’s Lt. Macen LeVan, an 18-year veteran recently assigned to the county courthouse, allegedly took 125 inappropriate photos with his agency cell phone, a sheriff’s office spokesman said to TC Palm.

“While we were looking for those messages, we came across a number of inappropriate photos, specifically some that were taken of him, of himself, while on duty in the courthouse in his office,” the sheriff’s office spokesman said to TC Palm.

Investigators said LeVan also took sexually explicit videos, and all the messages wer exchanged with consenting adults, TC Palm reports.