Pennsylvania’s state Senate approved legislation to overhaul how probation is handled, in an effort to clamp down on people being stuck on an endless probation cycle or being sent back to jail for minor violations.

The vote, 46-4, sends the bill to the House of Representatives, where a previous Senate bill died without a vote last year.