Walgreens has agreed to pay $230 million to settle a case brought by the city of San Francisco over the opioid crisis.

The settlement, announced Wednesday, comes months after a bench verdict in the case against Walgreens. Lawyers for the city of San Francisco had asked U.S. District Judge Charles Breyer of the Northern District of California for $8.1 billion in abatement funds—an amount that Walgreens called “wildly excessive”—but both sides held off moving forward on a damages trial to begin settlement talks.