BANGOR — A Dover-Foxcroft man has pleaded guilty to robbing a Bangor pharmacy last year.

John Harmon also pleaded guilty Tuesday to possessing oxycodone and an unrelated charge of aggravated assault.

Police say the 27-year-old Harmon walked into a Rite Aid store at the corner of Union and Fourteenth streets one evening last October, demanded prescription painkillers, and ran off.

He was arrested within an hour at a nearby apartment.

WABI-TV reports that prosecutors are recommending a four-year prison sentence for Harmon. But Harmon wants to prove he deserves less time than that, so the judge delayed sentencing until April.

Harmon’s getaway driver was sentenced to 2 ½ years in prison earlier this year.