PROVIDENCE, R.I. (AP) — CVS Health will pay the government $450,000 to settle allegations that several Rhode Island pharmacy locations filled a number of forged and invalid painkiller prescriptions.

U.S. Attorney Peter Neronha announced the agreement on Monday.

READ MORE: LOOK: Killer whale spotted by fisherman off Nantucket

It caps a two-year investigation by Neronha’s office and the Drug Enforcement Administration’s Office of Diversion Control into Woonsocket, Rhode Island-based CVS’s retail pharmacy locations. The government alleges these locations were filling prescriptions for various controlled substances with high potential for abuse.

The government says the locations filled a number of forged prescriptions with invalid DEA numbers and multiple prescriptions written by nurse practitioners for the opioid painkiller hydrocodone.

READ MORE: Boston makes top 20 in ranking of America's 'best places to live'

Under the Controlled Substance Act, such painkillers can only be prescribed by a physician.

CVS has denied wrongdoing.

MORE NEWS: Weekend heat likely to break records with low-mid 90s in the forecast

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.