A man who faced a maximum 99-year sentence, after pleading guilty to charges in the attempted sexual assault of an 11-year-old boy at a Muldoon movie theater, will instead serve two years in prison.

Marlon Pajarillo had already pleaded guilty in the 2012 incident at Regal Cinemas’ Totem 8 Theater -- but only to attempted sexual assault, not attempted sexual assault of a minor despite the boy’s age.

According to court documents Pajarillo was in the men’s bathroom at the theater on Aug. 26, 2012, in a stall adjacent to the victim. He took off his pants and underwear, then slid the lower half of his body under the divider into the next stall, attempting to pull the victim atop him until the boy got away and called for help.

Judge Michael Spaan showed misgivings about the sentence Monday, which also had an additional two years suspended and five years of probation. He ultimately accepted the plea deal, adding only the requirement that Pajarillo receive a mandatory mental health evaluation, and adhere to all of its recommendations.

Lawyers for the defendant and the state both say that the circumstances surrounding the assault aren't as cut-and-dried as they seem. Police found a Craigslist ad that Pajarillo says he responded to, soliciting an encounter in the theater’s bathroom at the time of the incident.

Prosecutors say they are satisfied with the outcome of the case. Since the incident, the victim and his family have moved out of the state.