(Stillwater, Okla.) — A Yale man, who said he is homeless, was given a 10-year prison term Friday for sexually abusing a 5-year-old girl, to whom he is related, while he was staying at her home in May.

Patrick Rayne Koelliker, 20, pleaded guilty to lewd or indecent proposals to the child after the charge, which originally included a rape count, was amended last week.

Payne County Associate District Judge Stephen Kistler sentenced Koelliker Friday in accordance with a plea bargain recommended by prosecutor Lynn Hermanson.

The judge warned Koelliker that he must serve at least 8.5 years in prison before he could be considered for parole and that he would be required to register as a sex offender for the rest of his life.

On his release from prison, Koelliker must serve five years of probation, the judge ordered Friday.

The child told three relatives that Koelliker had rubbed her in her genital area on the outside of her clothing before putting his finger inside her vagina, Yale Police Officer Ken Moore alleged in affidavit.

The girl’s mother wrote in a petition for an emergency protective order, which was granted, that on May 9 her daughter woke her to tell her that Koelliker had touched her genital area and “it hurt.”

The girl’s mother said that she then texted her own mother so she could get the girl out of the home, “so I could get him (Patrick) to leave,” the petition said.

After Yale police were called, “I filed a report and we took her to the Saville Center in Stillwater,” the girl’s mother wrote in her EPO petition.

“The Saville Center confirmed that the crime did happen,” the girl’s mother wrote in her EPO petition.

“Patrick Koelliker is no longer staying with us. I no longer want him around us, talking to us, anything to do with us,” the girl’s mother wrote in her EPO petition.

Koelliker has been in the Payne County Jail since his arrest in the case three months ago, court records show.