A coalition of 47 states, the District of Columbia and five U.S. territories Thursday announced they’ve reached a $573 million settlement agreement with global consulting firm McKinsey & Co. over its role in advising opioid companies on how to promote and profit from their products.

Ten states led an executive committee investigation into McKinsey. Those states included Connecticut, California and New York. Thirty-seven other states joined the lawsuit and signed off on the settlement agreement. Only Nevada, Washington and West Virginia weren’t part of the agreement.