The amount of bail shall be fixed by the court or justice with consideration given to the seriousness of the offense charged, the previous criminal record of the defendant, his financial ability, and the probability of his appearance. When two or more charges are filed or are pending against the same person at or about the same time, the bail given may be made to include all offenses charged against the defendant.