Constructed comparison gate, currently not working