A Los Angeles judge Monday ordered the release of a third-striker serving a life sentence for attempting to break into a church soup kitchen.

The case of Gregory Taylor, 48, who was mentally ill, drug-addicted and homeless when caught trying to pry open the church’s doors with a wooden board 13 years ago, has often been cited as an example of California’s three strikes law leading to disproportionate sentences for relatively minor crimes.

He told arresting officers he was hungry and wanted something to eat. At the time, a priest from the church, where Taylor was a regular and occasionally volunteered, pleaded that a life sentence “would not be just or merciful,” saying Taylor was “a peaceful man” and “a very good person who may have made mistakes.”

Judge Peter Espinoza was ruling on a habeas corpus petition for Taylor’s release filed by two law students as part of a Stanford law clinic devoted to helping three-strikes inmates serving lengthy sentences for minor third offenses.