Follow KDKA-TV: Facebook | Twitter

BELLEFONTE (AP) – A man facing hundreds of counts alleging child pornography and indecent assaults of children has pleaded guilty.

READ MORE: Pittsburgh Downtown Partnership Moves 20th Anniversary Light Up Night Celebration To Saturday

William Beck was sentenced this week to 25 to 50 years state prison. The 50-year-old Bellefonte man entered his plea Wednesday, the day his trial was slated to start.

Beck was charged in June 2016 after two young children claimed he was assaulting and photographing them. Officials have said the victims were 7 and 8 years old.

READ MORE: COVID-19 In Pittsburgh: Allegheny County Reports 574 New Cases, 2 Additional Deaths

Beck faced 330 counts overall, including felony counts of aggravated indecent assault of a child, child endangerment and child pornography and misdemeanor charges including indecent assault of a person less than 13 years old and copying obscene material.

Beck initially had pleaded guilty to all counts in December 2016 but then withdrew the plea in March.

MORE NEWS: COVID-19 In Pennsylvania: State Reports 5,786 New Cases, 72 Additional Deaths

(Copyright 2017 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)