"However, pretrial detention was a serious problem that contributed to overcrowding and deterioration of detention facilities.The law allows a 48-hour detention period before authorities must file charges, and an additional 24 hours for the court to decide whether to order pretrial detention." . . . . .