Added first compare function (not working)