LANCASTER, N.H. (WHDH/AP) — A pickup truck driver accused of colliding with a group of motorcyclists in Randolph, New Hampshire, killing seven of them, flipped an 18-wheeler in Texas just weeks before the horrific crash, police said.

Volodymyr Zhukovskyy, 23, waived his right to an arraignment Tuesday and pleaded not guilty through his lawyer to seven counts of negligent homicide. He was ordered to remain in preventive detention, with a Coos County Court judge citing his past driving record, saying it poses a potential danger to the public and himself.

Zhukovskyy, a resident of West Springfield, crashed a tractor-trailer truck in suburban Houston earlier this month, the Baytown Police Department told 7NEWS. They say Zhukovskyy claimed a driver cut him off, causing him to lose control of the rig.

RELATED: ‘Absolute hell’: Marine veteran who survived crash that killed 7 bikers recalls scene

Investigators in Texas were unable to confirm Zhukovskyy’s story. He was not charged.

In February, Zhukovskyy was arrested at Denny’s restaurant in Baytown and after officers say they found a crack pipe in his pocket.

New Hampshire State Police say Zhukovskyy was driving erratically and crossed the center line on Route 2 on Friday night, according to criminal complaints released Tuesday.

This photo provided by Miranda Thompson shows the scene where several motorcycles and a pickup truck collided on a rural, two-lane highway Friday, June 21, 2019 in Randolph, N.H. New Hampshire State Police said a 2016 Dodge 2500 pickup truck collided with the riders on U.S. 2 Friday evening. The cause of the deadly collision is not yet known. The pickup truck was on fire when emergency crews arrived. (Miranda Thompson via AP)

Zhukovskyy’s pickup truck, towing a flatbed trailer, collided with a group of 10 motorcycles, who were part of the Marine JarHeads, a New England motorcycle club that includes Marines and their spouses. Police say he was traveling west when it struck the eastbound group of bikers.

Records show Zhukovskyy was stopped on suspicion of drunken driving last month and in 2013. Connecticut prosecutors say he was arrested May 11 in an East Windsor Walmart parking lot after failing a sobriety test.

RELATED: Head of Mass. RMV resigns over NH crash that killed 7 motorcyclists

Additionally, Zhukovskyy was arrested on a drunken driving charge in 2013 in Westfield, Massachusetts, state motor vehicle records show.

Funerals are being planned for the victims, who were riding to a fundraiser when they were wiped out. Four were from New Hampshire, two from Massachusetts and one from Rhode Island.

Zhukovskyy was arrested Monday morning at his home in West Springfield. He was handed over to New Hampshire authorities after a brief court appearance.

(Copyright (c) 2024 Sunbeam Television. The Associated Press contributed to this report. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox