AUSTIN, Texas (AP) — Prosecutors are seeking at least 25 years in prison for a U.S. Army sergeant who fatally shot an armed man during a Black Lives Matter protest in Texas, saying his history of racist and provocative texts and social media posts expose a threat of violence likely to resurface.

Daniel Perry, 36, is scheduled to be sentenced Wednesday. He was convicted of murder in April for killing Garrett Foster during the downtown Austin protest in July 2020.

On Tuesday, prosecutors submitted into evidence dozens of texts and social media posts Perry wrote, shared or liked, including some shockingly racist images. They had been excluded from Perry’s trial, but were publicly released after his conviction and allowed into the sentencing phase by District Judge Clifford Brown.

Prosecutor Guillermo Gonzalez urged Brown to issue a sentence of at least 25 years. The sentencing range for the murder conviction is five years to life in prison.

“This man is a loaded gun, ready to go off at any perceived threat,” Gonzalez said. “He’s going to do it again.”

Perry said he acted in self-defense. His lawyers asked the judge to consider his more than a decadelong military career and hand down a sentence of no more than 10 years.

Perry is assigned to Fort Wainwright, Alaska, but has been classified as in “civilian confinement” and is pending separation from the military, Army spokesman Bryce Dubee said.

Perry, who is white, was working as a ride-share driver in downtown Austin on July 25, 2020, when he shot and killed 28-year-old Foster, an Air Force veteran. Foster, who was also white, was legally carrying an AK-47 rifle as he participated in the demonstration against police killings and racial injustice, following the killing of George Floyd, a Black man, by a white Minneapolis police officer.

Among Perry’s statements introduced Tuesday, he wrote on Facebook a month before the shooting: “It is official I am a racist because I do not agree with people acting like animals at the zoo.”

Floyd was killed on May 25, 2020. A few days later as protests erupted, Perry sent a text message to an acquaintance: “I might go to Dallas to shoot looters.”

Perry attorney Douglas O’Connell argued that the texts and posts were presented by prosecutors out of context, and that Perry has a right to free speech.

“Some of those social media posts are frankly repugnant,” O’Connell said, while classifying others as “dark humor.”

Forensic psychologist Greg Hupp testified that he believed Perry has post-traumatic stress disorder from his deployment to Afghanistan and being bullied as a child. Perry’s mother, Rachel Perry, testified that he was ostracized as a child because of a speech impediment.

Perry’s conviction prompted outrage from prominent conservatives, and Texas Republican Gov. Greg Abbott has said he will sign a pardon once a recommendation from the Texas Board of Pardons and Paroles — stacked with Abbott appointees — hits his desk

The board is reviewing Perry’s case on the governor’s orders, but it is unclear when it will reach a decision.

Perry was stationed at Fort Hood, about 70 miles (110 kilometers) north of Austin, when the shooting happened. He had just dropped off a ride-share customer and turned onto a street filled with protesters.

Perry said he was trying to get past the crowd and fired his pistol when Foster pointed a rifle at him. Witnesses testified that they did not see Foster raise his weapon, and prosecutors argued that Perry could have driven away without shooting.

More about: