The Long Island man accused of killing four people in cold blood at a Medford pharmacy in a quest for prescription painkillers pleaded not guilty to murder and other charges on Thursday in a Riverhead courtroom.

David Laffer was surrounded by half a dozen police officers when he pleaded not guilty to five counts of first-degree murder and four counts of criminal use of a firearm.

Initially, Laffer, 33, was only charged with one count of first-degree murder and resisting arrest.

According to authorities, Laffer is accused of entering the Haven Drugs Pharmacy where he gunned down pharmacist Raymond Ferguson, 45, clerk Jennifer Meija, 17, and customers Jaime Taccetta, 33, and Bryon Sheffield, 71, early Sunday morning.

Laffer's wife, Melinda Brady, who cops say drove the getaway car, was also arrested and charged in connection with the quadruple killings.

If convicted, Laffer faces life without parole on the murder counts and up to 25 years in prison on each of the weapons charges.