If the person is found to be sane by a court or jury, he or she will be sentenced as provided by law. If the person is found to be insane, the person will be confined in a state hospital or placed in the Contra Costa County Conditional Release Program (CONREP). The person may be confined for a length of time equal to the maximum sentence that could have been imposed for their crime. However, the person may be further confined, if the person still has a diagnosed mental disease or disorder and is a substantial danger of physical harm to others. Before confinement beyond the maximum term for the crime may be accomplished, the District Attorney must file a Petition to Extend Commitment. At this stage, the burden is on the District Attorney to prove beyond a reasonable doubt that the person still has a diagnosed mental disorder and represents a substantial danger of physical harm to others. Such extensions are for a one year period, but can potentially continue for the lifetime of the offender.