Soon after arrest by a peace officer, the suspect is taken before a judge who informs the defendant of the reason that he or she has been arrested and of his or her legal rights. The judge must also set a reasonable amount of bail. Unless the defendant can post bail in the amount set by the judge, he or she remains in custody to await further action in the case.