Oops - should be using bitwise AND