A Baltimore judge on Monday sentenced Gregg Thomas to life plus 35 years behind bars — the maximum sentence allowed — for the 2014 shooting of Sgt. Keith Mcneill, concluding a years-long court battle that included four trials.

Thomas, 37, had pleaded not guilty but was convicted by a jury of attempted first-degree murder and two gun charges in February after three mistrials in the case. Mcneill was shot eight times outside of an automotive shop in the Berea neighborhood of East Baltimore in March 2014.

Mcneill, who is still recovering from his injuries and wore a brace on one hand, declined to comment. His wife, Danielle Mcneill, said she was happy with the sentence, the Baltimore Sun reports.