Immunity is generally based on the value of the information to the prosecution and whether it can be obtained through other means or sources. The value of the information takes into account the credibility and ability and means to know. The gravity of the offense of the witness and potential other criminals is also weighed.