Charged with molesting two children for years, a suspended emergency room doctor from Bethlehem took a plea bargain Wednesday to lesser charges.

Vamsimadhav Korrapati pleaded no contest to two counts of reckless endangerment, misdemeanors that did not involve allegations of sexual abuse.

The plea bargain came as Northampton County prosecutors withdrew charges that, if Korrapati was convicted, would have required him to register as a sex offender.

Instead, Assistant District Attorney Anthony Casola said only that over a multiyear span ending in 2014, Korrapati displayed "reckless conduct" toward the two children that "may have placed them in danger of serious bodily injury."

Korrapati, a medical doctor, was charged last year by Colonial Regional police with felony counts of indecent assault, corruption of minors and endangering the welfare of children. At the time of his arraignment, Korrapati said he had practiced medicine at several Lehigh Valley hospitals before the allegations surfaced.

Vamsimadhav Korrapati, 41, was charged in October 2015 with two felony counts each of indecent assault of a person under age 13, corruption of minors and endangering the welfare of children

Vamsimadhav Korrapati, 41, was charged in October 2015 with two felony counts each of indecent assault of a person under age 13, corruption of minors and endangering the welfare of children

According to Korrapati's online profile, he worked at St. Luke's University Hospital in Fountain Hill and at Easton Hospital in Wilson.

At a preliminary hearing in February, one of the children testified that Korrapati would fondle him and force him to touch Korrapati's genitals. The boy charged that Korrapati performed similar acts on the other child, a girl.

Police said the offenses occurred in Hanover Township, Northampton County. Korrapati knew the two children, who provided statements of the alleged abuse to county caseworkers, police said.