After an arrest, a defendant goes through an initial court appearance where a judge sets bail and may appoint an attorney. While awaiting trial, a defendant can be released after paying bail or on their own recognizance. Some states require a preliminary hearing where the prosecutor must show probable cause that a crime was committed, while other states use a grand jury to issue an indictment. Prior to trial, the defendant and their attorney can file pretrial motions such as requesting more time to prepare, a change of venue, or suppressing certain evidence. At arraignment, the defendant enters a plea of guilty, not guilty, or no contest.