A Piqua man faces up to life in prison for the rape of a five-year-old boy.

William T. Baker, 44, formerly of Troy, will be sentenced Dec. 27 after pleading guilty Nov. 10 to two felony counts of rape of a child in Miami County Common Pleas Court.

Baker was accused in September of raping the child while he lived in Troy last summer. Troy police said Baker at first told them the initial contact with the child was “accidental” but that later incidents were not.

Baker initially was charged with 10 felony counts of rape.

As part of a plea deal outlined Nov. 10 in court, Baker agreed to plead guilty and prosecutors agreed not to seek additional charges from the incidents that led to Baker’s arrest.

Baker waived a grand jury’s consideration of allegations against him and made the guilty pleas before Judge Christopher Gee.

Gee explained to Baker he could be sentenced to 10 years to life on each of the charges. If the sentences are run consecutively, Baker could receive 20 years to life in prison. Gee said the sentences are mandatory time, meaning Baker would not qualify for any type of early release.

Baker was convicted previously of sex offenses involving a 10 year old. He served four years in prison on those charges before release in 2005.

Baker will be classified a Tier III sex offender.

Gee explained to Baker he would have to register his address with the sheriff’s office in the county where he lives every 90 days following prison release for the remainder of his life. Gee said the registration only would be required if Baker was some day released from prison.

A presentence investigation was ordered. Baker’s bail was continued and he was returned to the county jail pending sentencing.