Added missing XOR operator