An Oklahoma judge has ordered that Johnson & Johnson pay more than $572 million to abate the state’s opioid crisis.

The bench verdict, announced by Cleveland County District Court Judge Thad Balkman on Monday, comes in the first trial against an opioid company. Oklahoma had asked for a $17.5 billion abatement plan over 30 years, alleging that Johnson & Johnson’s Janssen Pharmaceuticals, as the sole defendant, created a public nuisance when it oversupplied opiate pharmaceuticals in the state, leading to massive deaths and addictions.