Removing shitty XOR