Anderson Aldrich plans to plead guilty to federal charges with an agreement that would allow him to avoid the death penalty

The shooter, who killed five people and endangered the lives of over 40 others at an LGBTQ+ nightclub in Colorado Springs, plans to plead guilty to new federal charges for hate crimes and firearm violations under an agreement that would allow the defendant to avoid the death penalty, according to court documents made public Tuesday.

Anderson Aldrich, 23, made a deal with prosecutors to plead guilty to 50 hate crime charges and 24 firearm violations, the documents show. Aldrich would get multiple life sentences in addition to a 190-year sentence under the plea agreement, which needs a judge’s approval.

The plea agreement was unsealed after Aldrich had pleaded not guilty in court during an initial appearance on Tuesday afternoon. The gun charges can carry a maximum penalty of death.