SAN FRANCISCO (AP) – A federal judge has ordered fewer nighttime interruptions for Alameda County jail inmates after a group of female inmates at Santa Rita Jail in Dublin sued, saying their lack of sleep amounted to cruel and unusual punishment.

The San Francisco Chronicle reports U.S. District Judge James Donato on Monday put an end to 2:30 a.m. pill calls, noisy overnight maintenance work and 4 a.m. breakfasts.

READ MORE: ‘Shut Up And Make Babies’: Protesters Reveal Deeply Personal Stories Following SCOTUS Decision

ALSO: Fisher-Price Now Recalling Rock ‘N Play Sleeper After 30+ Infant Deaths

READ MORE: California Abortion Activists React To The End Of Roe V. Wade

Donato also ordered lights to remain out an extra hour during the week, and two hours on weekends and holidays.

Attorneys for the Sheriff’s Office had argued the early morning pill calls were necessary for certain ailments and that a 4 a.m. breakfast ensured time to transport inmates to court.

MORE NEWS: Tesla Fire In Alameda County Grows To Over 500 Acres

Sheriff’s Office spokesman Sgt. Ray Kelly says jail officials will comply with the judge’s orders.