The maker of Tylenol pleaded guilty in a Federal Court on Tuesday to selling liquid medicine contaminated with metal.

McNeil Consumer Healthcare, a Johnson & Johnson subsidiary, pleaded guilty in a Federal District Court in Philadelphia to a criminal charge of manufacture and process of adulterated over-the-counter medicines. The company agreed to a $25 million settlement with the U.S. Department of Justice.

The company launched wide-ranging recalls in 2010 of over-the-counter medicines including Infants’ Tylenol and Children’s Motrin.

Those recalls came on the heels of others from 2008 to 2010 that involved hundreds of millions of bottles of Tylenol, Motrin, Benadryl and other consumer products. Metal particles contaminated the liquid medicines, which also suffered from moldy odors and labeling problems.

A spokeswoman for McNeil Consumer Healthcare said the plea agreement “closes a chapter” and that the company has “been implementing enhanced quality and oversight standards across its entire business,” Reuters reports.

Read next: 8 Things You Don’t Know About Supplements

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Listen to the most important stories of the day.

Contact us at letters@time.com.