Bail is, btw, almost certainly unconstitutional and should be abolished. It's one of those things that slipped through the cracks and was kind of grandfathered in. The Supreme Court has ruled again and again that in a system where persons are presumed innocent any sort of pre-conviction punishment by the state (fines, excessive jail, forced hospitalization) is not allowed. Somehow though the judge has the power to declare somebody a flight risk and order them held until trial. This is a little mitigated by the right to a speedy trial but is still likely wrong.