LOS ANGELES (AP) — A woman known as the “Ketamine Queen,” charged with selling Matthew Perry the drug that killed him, agreed to plead guilty Monday.

Jasveen Sangha becomes the fifth and final defendant charged in the overdose death of the “Friends” star to strike a plea agreement with federal prosecutors. Having initially pleaded not guilty, her change of plea means she’ll avoid a trial that had been planned for August.

Prosecutors had cast Sangha as a prolific drug dealer who was known to her customers as the “Ketamine Queen,” using the term often in press releases and court documents and even including it in the official name of the case.

A federal indictment charged Sangha with one count of conspiracy to distribute ketamine, one count of maintaining a drug-involved premises, one count of possession with intent to distribute methamphetamine, one count of possession with intent to distribute ketamine and five counts of distribution of ketamine.

She and Dr. Salvador Plasencia, who signed his own plea deal June 16, had been the primary targets of the investigation. Three other defendants — Dr. Mark Chavez, Kenneth Iwamasa and Erik Fleming — agreed to plead guilty last year in exchange for their cooperation, which included statements implicating Sangha and Plasencia.