People accused of crimes and awaiting trial may be released from custody if they agree to

stay under house arrest.
pay bail.
leave the country.
testify truthfully.