All States allow juveniles to be tried as adults in criminal court under certain circumstances. In many States, the legislature statutorily excludes certain (usually serious) offenses from the jurisdiction of the juvenile court regardless of the age of the accused. In some States and at the Federal level under certain circumstances, prosecutors have the discretion to either file criminal charges against juveniles directly in criminal courts or proceed through the juvenile justice process. The juvenile court's intake department or the prosecutor may petition the juvenile court to waive jurisdiction to criminal court. The juvenile court also may order referral to criminal court for trial as adults. In some jurisdictions, juveniles processed as adults may upon conviction be sentenced to either an adult or a juvenile facility.