Used to check sam_flag meaning.