Pretrial release or detention: pretrial services.
Compensation for wrongful conviction: hearings by a special master.