Use a more conventional logical op instead of bitwise and