The Sackler family will pay out $6 billion to fight the ongoing opioid epidemic and also give up control of their company, Purdue Pharma in exchange for protection from current and future civil lawsuits against its opioid business, the 2nd U.S. Circuit Court of Appeals in New York ruled on May 30.

Purdue Pharma, the maker of OxyContin, and its owners, the Sackler family, are facing hundreds of lawsuits across the country for the company’s alleged role in the opioid epidemic that has killed more than 200,000 Americans over the past 20 years. Purdue created and sold the highly addictive painkiller beginning in the 1990s. Purdue and the family have been accused of knowingly misleading consumers about the drug’s addictive properties.

As part of the current settlement, Purdue will be restructured into Knoa Pharma, which will be overseen by a public board and manufacture medications for addiction reversal and treatment, as well as continue to produce drugs, including OxyContin. The company’s profits — in addition to the $6 billion — will go toward fighting the opioid crisis.