Anthony Lord, the man accused in the July 2015 shooting rampage in northern Maine that left two people dead and three others hurt, pleaded guilty in a Rockland courtroom Wednesday.

Lord's attorneys said he pleaded guilty to two counts each of attempted murder, elevated aggravated assault and theft of firearms, according to the Bangor Daily News. He also pleaded guilty to one count each of arson, aggravated assault and eluding an officer.

Lord's 18-hour shooting rampage caused the deaths of Kevin Tozier, 58, of Lee and Kyle Hewitt, 22, of Bangor. Kim Irish, 57, Clayton McCarthy, 57, and Carlton Eddy, 52, all of Benedicta, suffered gunshot wounds.

Wednesday’s hearing was held in Rockland because the courthouse there is closer to the Maine State Prison.

“The state will be seeking life sentences at the time of sentencing,” the prosecutor said.