A man wrongly convicted of two separate violent crimes will be compensated by the state of Maryland after spending years behind bars, including over a year after he had been proven innocent.

A Maryland board approved more than $340,000 for a settlement on Wednesday in compensation for Demetrius Smith who was wrongly convicted of murder and first-degree assault and spent more than five years in prison.

Gov. Wes Moore, who chairs the three-member Board of Public Works, apologized to Smith before the board approved the settlement, noting that it’s been more than a decade since his release in 2013.