Changed to bitflags for escape checking.