The man who caused a school lockdown and sparked a manhunt in Des Moines in October was in court Wednesday to accept a plea deal.
The deal means 35-five-year-old Ryan Collier is sentenced to the maximum two years behind bars.
During the proceedings Collier admitted to following his ex-girlfriend into Merrill Middle School last October.
"On the day in question I followed her into the school after she stopped answering her phone and threatened to shoot her,” Collier said.
Collier fled from the school after learning his threat was causing a lockdown.
That sparked a lockdowns at five Des Moines schools and a two-hour-long manhunt. Collier was located and taken into custody.
He was initially charged with child endangerment, harassment, domestic abuse, and interference with official acts.
In court Wednesday the child endangerment charge was dismissed. Collier pleaded guilty to the other charges.
The Polk County judge sentenced him to serve a maximum of two years minus time served.