Over the past four years, Joshua Haynes of Pekin entered five guilty pleas to several crimes and withdrew four of them during his highly unusual path through Tazewell County’s criminal courts.

He reached its end Thursday when he pleaded guilty to an aggravated DUI charge filed in 2014. It was his third such plea in that case, and his 10-year prison sentence is four years longer than one he had accepted with a previous plea, then rejected.

Combined with sentencings in two other cases since February, Haynes, 41, has racked up a total of 21 years in prison terms.

He’ll get credit for the nearly two years he’s spent in custody as his cases wound through the court system as well as day-for-day credit.

Haynes’ past criminal record, however, had significant impact on the length of terms he received in his latest three cases. Since 1995, he’s logged eight felony convictions, with four others dismissed, and three DUI convictions among more than three dozen traffic-related charges.

He was sentenced to nine years last February for possessing ingredients to make methamphetamine in 2016.

A month earlier, Haynes pleaded guilty to communicating with his two daughters from jail after their mother, his ex-girlfriend, obtained a court protection order barring any contact with them. Haynes entered the plea moments before his jury trial in the case was to begin.

He was sentenced in March to two years in prison, to be served consecutively to his sentences in his meth and DUI cases.