Keith Davis Jr., a man shot by police in June of 2015 and later charged and convicted of the murder of Kevin Jones, has been granted a new trial.

A hearing for a motion for a new trial, which began on Dec. 1 and continued into today, found Davis’ lawyers focusing on the unreliability of the state’s star witness David Gutierrez, who claimed Davis confessed to him about Jones’ murder. That claim, according to Davis’ lawyers, was impossible given prison layout and permissions.

The defense’s two witnesses were Gutierrez’s former cellmate Ishtahim Butt, and James Harris, the security chief at Jessup Correctional Institution.

Butt testified that he only recently met Davis for the first time, and that he is a practicing Muslim and therefore cannot drink or make alcohol—Gutierrez said Davis bought alcohol from his cellmate, who would’ve been Butt, and that’s how they met and got to talking and Davis to confessing.

Harris testified that permissions would have prevented Davis from entering Butt and Gutierrez’s cell and vice versa.

The defense argued that Gutierrez was the primary factor that made the second trial different from the first trial—most other state witnesses in both trials were related to the police shooting of Davis that led to him being charged with Jones’ murder—and that if Gutierrez’s testimony was not reliable and if the defense now had Butt to challenge Gutierrez’s account, then a new trial was necessary. Additionally, Francis-Williams suggested that Gutierrez’s involvement in a past RICO case was misrepresented to the jury and judge because Gutierrez was not only involved in the drug-dealing elements of it, but also in the disposal of a body, which he burned. On Monday, Judge Lynn Stewart Mays referred to the state’s presentation of Gutierrez’s record as “sanitized.”

For a motions hearing, it was particularly dramatic—in part because of Baltimore Bloc’s demand that people in support of Davis “pack the court,” which led to a fairly full courtroom and also a number of strange and compelling moments. During his testimony, Butt explained how he learned about Gutierrez’s allegations and said a lawyer, Jeremy Eldridge, had visited him. Judge Mays chastised Frances-Williams for what she said at least “looked like” she was shaking her head and “coaching” Butt.

Butt, who is doing 30 years for the sexual abuse of a 14-year-old girl, said that he was there to “clear his name” in regards to alcohol sale and consumption as a Sunni Muslim. But Judge Mays blurted out an angry aside challenging Butt’s statement, referring to his “child abuse” charge. Mays, who seemed exasperated by the nearly day-long hearing on Friday, also quoted the 1942 Bette Davis vehicle “Now, Voyager” (“Oh, Jerry, don’t let’s ask for the moon, We have the stars”) to Frances-Williams, who argued for a while about a supplement to the motion.

Similar to both murder trials for Davis, the State’s argument mostly focused on circumstantial evidence: that it was possible Davis could have gone to another inmate’s cell despite not being permitted (SAO’s Andrea Mason invoked recent news that a guard at Jessup is also a Crip) and that Davis also could have spoken to Gutierrez “during chow” (Gutierrez specifically testified that the conversation happened in his cell).

It is something of a victory for local activists and Davis’ wife Kelly, who have been calling attention to Davis’ situation since 2015.

“It doesn’t open the door to let him out, but I feel he’s been at least partially vindicated,” Kelly Davis said. “No matter what you believe, no matter what you thought, he did not do this. He should not have been convicted behind the dirty antics of the State’s Attorney’s Office. This is just one step closer to getting him home where he belongs.”

“We respect the judge’s decision,” Melba Saunders, director of communications for the SAO said in a statement. “And look forward to presenting the facts of this case again in the pursuit of justice for the family of Mr. Jones.

This will be the third time he has been tried for Jones’ murder.

Kelly Davis will hold a press conference in front of the State’s Attorney’s Office today at 3:30 p.m.

Additional reporting by Baynard Woods.