A 32-year-old Medford man who had a sexual relationship with an underage girl, then fled to Louisiana last spring during the investigation, will spend more than six years in prison for electronic sex crimes involving the victim.

Ryan Herbert Trent Williams, a registered sex offender, was sentenced Friday in Jackson County Circuit Court to 77 months in prison for his guilty plea to single counts of using a child in a display of sexually explicit conduct and first-degree online sexual corruption of a child.

Using a child in display of sexually explicit conduct is a Class B felony under Oregon law and carries a minimum sentence of 70 months in prison. First-degree online sexual corruption of a child also is a Class B felony but is not covered in Oregon's minimum-sentencing law.

Investigators learned that Williams was engaged in a sexual relationship between November 2015 and April 25, 2016, with a 16-year-old female he met through his place of employment, Jackson County Deputy District Attorney Zori Cook said.

One of the victim's friends alerted her parents about the relationship and they discovered messages between her and Williams on her electronic devices, Cook said.

The Southern Oregon High-Tech Crimes Task Force found digital evidence on cellphones and computers that Williams was exchanging photos, videos and messages with the victim, prosecutors said.

Early in the investigation, Williams learned about the case, possibly from a member of the victim's family who told Williams they had contacted police, Cook said.

Williams fled to Louisiana, where he was discovered in New Orleans and arrested Sept. 20 by members of the U.S. Marshals Service, prosecutors said.

Williams pleaded guilty to the charges Feb. 23. He remains in the Jackson County Jail.

Williams has a pending federal charge of failing to register as a sex offender, alleging he knowingly failed to register while on the lam to Louisiana, court records show.

Court records show Williams had been sentenced to prison in 2005 after pleading guilty to second-degree rape involving a victim younger than 14 years old, and first-degree sodomy involving a victim who was younger than 12.

— Reach Mail Tribune reporter Mark Freeman at 541-776-4470 or mfreeman@mailtfribune.com. Follow him on Twitter at www.twitter.com/MTwriterFreeman.