DENVER (AP) – New limits on solitary confinement for Colorado’s juvenile offenders are headed to the governor’s desk.

Lawmakers agreed Monday on a measure to make it harder to use solitary confinement in state-run juvenile facilities.

READ MORE: Colorado Weather: Winter Weather Advisory For The Front Range

The bill limits the use of solitary confinement to four hours without approval of the head of the state Division of Youth Corrections. The practice could be used more than eight hours only if there’s a court order. Staff must check on the youth every 15 minutes.

The bill also requires juvenile facilities to track the race, age and gender of youths held in solitary.

READ MORE: Mauricio Anchondo-Olivas Sentenced To Life In Prison For Murder Of Former Roommate

President Barack Obama in January called for a ban on putting juveniles housed in the federal prison system in solitary confinement.

LINK: House Bill 16-1328

MORE NEWS: PHOTOS: Cheesman Park Homes & Governor's Mansion Vandalized With Spray Paint

(© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)