PORTLAND, Ore. (AP) — A Portland man was sentenced to nearly a decade in prison for the assault and rape of a homeless woman he lured to a vacant home last year, prosecutors said.

The Oregonian/OregonLive reports Michael Moody, who had five previous felony convictions, was ordered to serve a 118-month sentence after a jury found him guilty earlier this year of rape, assault, unlawful use of a weapon and coercion.

On Jan. 7, 2019, Moody lured the victim to a vacant building by offering to help her, said Deputy District Attorney Sean Hughey. Moody then demanded the victim remove her clothing. When she refused, Moody hit her with a bat and sexually assaulted her, prosecutors said.

“Michael Moody was opportunistic and took full advantage of the victim’s vulnerabilities and offered to help her in early January 2019,” Hughey said in a statement. “Instead of helping, Mr. Moody lured her to an abandoned house where he physically and sexually assaulted her and ultimately left her injured and abandoned.”

The victim went to a hospital the next day complaining of head pain for her injuries. She told medical staff that she’d been raped and police began searching for Moody, who was arrested in October not far from where the assault occurred.

Moody’s criminal record stretches back roughly 20 years, said Multnomah County District Attorney Mike Schmidt, and includes seven misdemeanor convictions and five felonies, ranging from possession of a stolen vehicle to trespassing to assault. Schmidt said Moody’s criminal history helped inform his sentencing recommendation.