Added Output option to XOR module