The company also agreed to pay the state of Massachusetts $185,000 and stop marketing its opioids in person earlier this month.