Updated

A former Olympic gymnastic doctors accused of sexually assaulting dozens of women and girls pleaded guilty on Tuesday to child pornography charges.

Dr. Larry Nassar, who has a long career of treating college and Olympic gymnasts, appeared in federal court in Grand Rapids, Mich. He pleaded guilty to three charges during his hearing -- two of which carry maximum penalties of up to 20 years in prison.

MICHIGAN PIZZERIA CLOSES AFTER VIDEOS SHOW FORMER MANAGER DANCING ON BUFFET BAR

Nassar is awaiting trial on charges in three separate cases alleging that he sexually molested a total of nine girls, including eight who were gymnasts seeking treatment for injuries. He has pleaded not guilty, and his attorney, Shannon Smith, said Nassar intends to proceed to trial in those cases.

“The plea was negotiated only to resolve the federal charges,” Smith said, referring to the child porn case.

Nassar admitted that he tried to destroy hard drives that contained thousands of inappropriate images last fall, according to his plea deal. Investigators later discovered them in a trash can. Some of the allegations go as far back to the 1990s.

Nassar, 53, acknowledged that he threw out the hard drives and paid $49 to have a laptop computer wiped clean to “impede and obstruct” investigators.

The government said Nassar would not be prosecuted for traveling internationally between 2006 and 2013 with the intent of engaging in sexual conduct with minors as part of a plea deal.

DONALD TRUMP JR. RELEASES ‘ENTIRE EMAIL CHAIN’ REGARDING RUSSIAN MEETING

Despite being a USA Gymnastics doctor, Nassar was also a sports medicine specialist at Michigan State.

Nassar’s career collapsed last summer after the Indianapolis Star reported that USA Gymnastics mishandled complaints about sexual misconduct involving the doctor and coaches. Women and younger girls came forward with allegations following the expose.

In addition to the three criminal cases in Michigan, Nassar is also being sued by more than 100 women or girls who have made similar claims against him.

The Associated Press contributed to this report.