Updated Xor to use cursor. Performance increased 1.5x.