Johnson & Johnson agreed to pay about $1 billion to resolve the bulk of lawsuits claiming the company sold defective metal-on-metal hip implants that ultimately had to be removed, Bloomberg reported, citing people with knowledge of the matter.

Johnson & Johnson and the company’s DePuy Orthopaedics unit have agreed to pay $120 million to resolve deceptive marketing claims by several U.S. states over the company’s metal-on-metal hip implants.

Johnson & Johnson said the company would work with the Indian government to compensate patients who had suffered from hip implants that were recalled by the U.S. healthcare firm eight years ago after data showed high failure rates.

A government panel recommended that Johnson & Johnson pay compensation of at least $28,500 to each Indian patient who suffered from artificial hip implants the U.S. healthcare firm recalled eight years ago.

J&J secured a favorable U.S. appellate court ruling, overturning a verdict that awarded $151 million to five people who blamed injuries they suffered on the company’s Pinnacle hip implant devices.

A federal jury in Dallas ordered Johnson & Johnson and its DePuy Orthopaedics unit to pay $247 million to six patients who said they were injured by defective Pinnacle hip implants.

A U.S. judge almost halved the award in a December 2016 jury verdict that ordered J&J and DePuy Orthopaedics to pay $1+ billion to plaintiffs in six lawsuits.

J&J will challenge the fairness of a trial that produced a $1 billion verdict in damages against the company over allegations of design flaws in its Pinnacle hip implant.

A federal jury in Dallas ordered Johnson & Johnson and its DePuy Orthopaedics unit to pay more than $1 billion to six plaintiffs who said they were injured by Pinnacle hip implants.