A judge on Tuesday accepted Colorado theater shooting suspect James Holmes' decision to change his plea to not guilty by reason of insanity.
The decision sets the stage for a mental evaluation that could take months to complete.
More from GlobalPost: James Holmes to plea not guilty by reason of insanity in Aurora, Colorado, shooting case
Holmes first asked to change his plea in early May, sparking a weeks-long debate over whether he should be allowed to do so and the constitutionality of Colorado's laws for insanity pleas.
He is accused of opening fire in a movie theater in Aurora, Colo., killing 12 people and injuring 70 during a midnight showing of "The Dark Knight Rises."
More from GlobalPost: James Holmes' lawyers offer guilty plea to avoid death penalty in Aurora shootings
Prosecutors are seeking the death penalty.
Holmes' attorneys have repeatedly argued he is mentally ill, and his insanity plea is seen by some at his best shot at avoiding execution.
Prior to the July 20 massacre, Holmes had been seeing a therapist named Dr. Lynne Fenton. According to court documents, he threatened her repeatedly in text messages and sent her a journal about a week before the shooting.
Holmes' trial is scheduled to begin in February, according to the Denver Post.
The story you just read is accessible and free to all because thousands of listeners and readers contribute to our nonprofit newsroom. We go deep to bring you the human-centered international reporting that you know you can trust. To do this work and to do it well, we rely on the support of our listeners. If you appreciated our coverage this year, if there was a story that made you pause or a song that moved you, would you consider making a gift to sustain our work through 2024 and beyond?