PENSACOLA, Fla. (WKRG) — A former church youth director in Pensacola is going to prison.

40-year-old David Nims was charged with 25 counts of child pornography possession and 16 counts of video voyeurism. He faced more than 500 years in prison, but he took a plea deal. Some charges were dropped, and Nims was sentenced to 50 years in prison on Friday.

Nims set up a camera under a sink in a restroom at Calvary Baptist Church. In March 2021, he recorded not just adults but kids between the age of 6 and 14 years old. Investigators later found SD cards with more than 100 child porn images in his home.