Added error to xor to test error handling functionality