The former Calvary Baptist Church youth director arrested for hiding a camera in the church bathroom to record people and possessing child pornography was sentenced to 50 years in state prison Friday after taking a plea agreement.

David Nims, 40, was charged with 25 counts of child pornography possession and 16 counts of video voyeurism, and he faced up to 515 years in prison before he took a plea deal. He not only recorded adults in the church bathroom, but also two 6-year-olds, a 10-year-old and a 14-year-old.