CHICAGO (CBS) — New legislation has opened the door for a plan to keep some low-level offenders from spending months in jail as they wait for their cases to make their way through the courts.

The new law creates a special court, dubbed the “rocket docket,” for non-violent inmates charged with minor retail theft, or trespassing; many of whom now have to wait behind bars for months, because they cannot afford even a low bail.

READ MORE: Patients Left With A Lot Of Questions After Center For Covid Control Testing Sites Temporarily Shut Down, State Investigates Complaints

Cook County Sheriff Tom Dart said, under the new law, if such a case isn’t resolved within 30 days, defendants must be released on their own recognizance, or on electronic monitoring.

“The case is still alive, so the case can be prosecuted. All it says is that we aren’t going to allow these people to rot away in jails on insignificant cases, just because they can’t come up with $100 or $200,” he said. “It’s not right. It’s not what our system is about.”

READ MORE: Chicago Rapper Vic Mensa Arrested After Customs And Border Protection Agents Say They Found Drugs In Bag At Dulles International Airport

The measure only covers defendants never convicted of a violent crime, and Dart said many inmates fit that bill.

“We’ve had numerous cases where people, literally, had stolen a bar of soap, they’ve stolen two plums, and they have sat in our jail for 3, 4, 5 months at a time,” he said.

MORE NEWS: No Communication With Firefighters Before Baby Was Found Dead Outside Fire Station; Could Baby Boxes Be A Last-Resort Option In Cases Like This?

The legislation passed by wide margins in the House and Senate, and Gov. Bruce Rauner signed the measure late last week.