A former police officer charged in connection with a DUI crash entered a guilty plea in the case.

Ryan Hundley, who is a former Danville police officer, appeared in Boyle Circuit Court on Thursday morning. He pleaded guilty to two counts of 1st-degree wanton endangerment and one count of DUI.

Police charged Hundley after a head-on crash on Kentucky 2168 in February 2016. Police say he admitted to drinking before the collision.

In November 2015, the Danville Police Department placed Hundley on administrative leave after he pulled over a Boyle County Schools bus and then boarded it to confront a child for an incident that involved his daughter.

Hundley resigned from the department in March 2016.

A judge set a sentencing date for Hundley on Feb. 7 at 9 a.m. The prosecution recommended he serve five years for his crimes.