PITTSBURGH (KDKA) — A man accused of molesting a young boy while babysitting him last year is going to prison after pleading guilty to rape charges.

Dylan McKinney, of Shaler Township, pleaded guilty to charges of rape of a child and corruption of a minor Wednesday morning in court.

READ MORE: Hussey Copper Smelting Facility In Leetsdale Agrees To Pay Settlement For Environmental Violations

A judge then sentenced him to eight to 16 years in jail.

(Source: Ross Township Police)

Investigators say McKinney was watching the 5-year-old boy in Ross Township in May of last year when the alleged rape happened.

READ MORE: Ohio Man Arrested In Florida, Accused Of Groping And Punching Flight Attendants

The victim’s parents hired McKinney through the online babysitting service called SitterCity.com.

Police said once they took McKinney into custody last year, he admitted to the incident, also indicating he has allegedly been sexually assaulting young children for years.

MORE NEWS: Local Communities, Police Departments Celebrate National Night Out

Stay with KDKA for the latest on this developing story.