CHICAGO (CBS) — Andrew Viles, an inmate who escaped from custody in Grundy County on Saturday, was captured Sunday afternoon near southwest suburban Morris.

Viles, 34, had escaped from the Grundy County Jail during a meal delivery around 4:30 p.m. Saturday.

READ MORE: Chicago Sky Win First WNBA Championship As They Top Phoenix Mercury

Sheriff’s officials said Viles had been a model inmate before his escape, and was given the role of jail trustee, allowing him to assist with meal service. He escaped the jail during a food delivery Saturday afternoon, walking out the jail’s east door.

READ MORE: Jubilant And Inspired Fans, Booming Businesses Near Wintrust Arena As Chicago Sky Win WNBA Championship

Sunday afternoon, a Grundy County Sheriff’s deputy spotted Viles on a set of railroad tracks near Saratoga and Stockdale roads. Sheriff Ken Briley said when Viles saw the deputy, he tried to hide in a wooded area near the tracks, but was captured after additional deputies surrounded the area.

MORE NEWS: Chicago Weather: Slow Warm-Up Beginning