Richard Glossip, the former Oklahoma death row inmate who spent nearly three decades in prison and was nearly executed three times before the Supreme Court tossed his murder conviction, has pleaded guilty to a lesser charge.

His attorney Don Knight told The Associated Press that Glossip pleaded guilty to accessory to murder.

The plea came over six months after Glossip was released from prison on bond while awaiting a retrial for what prosecutors allege was a murder-for-hire scheme in 1997.