CONCORD, N.H. — New Hampshire Sens. Jeanne Shaheen and Maggie Hassan say they have helped to secure an agreement to provide an additional $6 billion to respond to the national opioid epidemic over the next two years.

The Democratic senators said Wednesday they also received assurances that the opioid funding formula will be improved to prioritize states like New Hampshire with high mortality rates from overdoses.

The senators have been participating in bipartisan negotiations as part of a group called the Common Sense Caucus, where they’ve been advocating for additional opioid funding and a change in the federal funding formula.

Last year, the two helped introduce a bill that would change how federal agencies determine grant funding for Fiscal Year 2018 to prioritize states like New Hampshire and West Virginia, which have the highest mortality rates from opioid overdoses in the nation.