A New Ulm doctor accused of stealing pain medication from a vulnerable adult has agreed to a plea deal to avoid the trial scheduled to get underway next week. 59-year-old Doctor David Miller was caught by a hidden camera taking pain pills from a patient’s bottle and replacing them with over-the-counter medication. Miller worked at the Brown County Detox Center in New Ulm at the time, but the investigation into the pill thefts revealed that he had sought treatment for substance abuse in the 1990s, and had also been writing prescriptions to himself using false names. His medical license had been restricted following those allegations, but was reinstated in 2000. No disciplinary action has been taken for the latest charges at this time. Miller has agreed to plead guilty to felony theft of a controlled substance, and 2 felony counts of possessing a controlled substance will be dismissed. Sentencing is set for September 23rd, and he does face possible jail time.