BALTIMORE (AP) — A former Hagerstown dentist has struck a plea deal on federal drug charges.

The agreement averted a trial that had been set to begin this week in Baltimore for Vaqar Choudry of Germantown.

READ MORE: Now That Students Have Returned To The Classroom, One Question Remains: Are Children Safe?

Court documents show that Choudry agreed Friday to plead guilty to one count of unlawfully distributing the prescription painkiller oxycodone.

In return, prosecutors agreed to dismiss a second drug count and a charge that Choudry tried to induce an underage girl to engage in sexual activity.

READ MORE: No Injuries Reported Following Partial Collapse Of Fells Point Restaurant

Choudry faces up to 20 years in prison at his sentencing in August.

He still faces charges in state court that he solicited a minor for sex and exposed himself in his dental office waiting room.

Choudry’s Maryland dental license was suspended last year.

MORE NEWS: 'I'm All About Ellicott City' Ellicott City Residents & Business Owners React To Number 10 Ranking On Money Magazine's 'Best Places To Live List'

(Copyright 2013 by The Associated Press. All Rights Reserved.)