COLORADO SPRINGS, Colo. − The suspect accused of killing five people and injuring 17 others at an LGBTQ nightclub in Colorado Springs pleaded guilty Monday to multiple murder charges and other crimes.

Anderson Lee Aldrich, 23, pleaded guilty to five counts of first-degree murder and 46 counts of attempted first-degree murder and no contest two counts of bias-motivated crimes, one a felony and the other a misdemeanor. Aldrich was initially charged with more than 300 crimes in connection to the mass shooting at Club Q in November.

According to the plea deal, Aldrich will serve five consecutive life sentences without the possibility of parole on the murder charges and 46 consecutive 48-year sentences on the attempted murder charges, Judge Michael McHenry said Monday. The plea deal spares survivors and victims’ family members, many of whom spoke at Monday’s hearing, a potentially painful trial.

Aldrich opened fire with an AR-15-style rifle at the nightclub before bar patrons, including Army veteran Richard Fierro, helped subdue them.

“I intentionally and after deliberation caused the death of each victim,” Aldrich told McHenry Monday.

Crying could be heard in the courtroom as McHenry read the names of of Aldrich’s victims, including the five killed – Ashley Paugh, Raymond Green Vance, Kelly Loving, Daniel Davis Aston and Derrick Rump. As the arraignment shifted into a sentencing hearing, survivors and family members of those killed in the attack spoke about their loved ones.

“I was celebrating my birthday when this heinous attack happened, and not only have I lost my partner, my sense of safety, but I’ve also lost a massive sense of safety for our community as a whole,” said Wyatt Kent, a drag performer who was in a relationship with Aston, a Club Q bartender. “We as queer people were attacked on November 19.”

Aldrich sentenced to life in prison

District Attorney Michael Allen described the deal as one that “achieves the highest measure of justice possible under the law in the state of Colorado while allowing the victims and their families to continue forward on their path toward healing.”

Aldrich declined to speak during sentencing, but their attorney Joseph Archambault said in a statement Aldrich is “deeply remorseful.”