FREDERICK, Md. (AP) — A man granted a new trial after his conviction in a 1976 slaying was overturned has pleaded guilty to murder and was sentenced to time served.

Prosecutors say Raymond Walker, 56, entered the plea Thursday in court in Frederick. He had served 37 years in prison in the shooting death of William Thompson.

READ MORE: Maryland Weather: A Cold Front Sweeps In As Severe Thunderstorm Watch Ends

Prosecutors say Walker shot Thompson while robbing his liquor store. He was convicted in January 1977.

READ MORE: Waterfront Partnership Of Baltimore Offers Free Exercise Classes Along Inner Harbor

Last year, the Court of Appeals, the state’s highest court, rule that jury instructions prior to 1980 led to unfair trials. Walker’s was one of many convictions overturned.

MORE NEWS: Five People Shot Within An Hour On East Side Of Baltimore Sunday

(Copyright 2013 by The Associated Press. All Rights Reserved.)