Added XOR hashing in equality checks