Correct register order
Convert greaterThan to lessThan