Adding less than and greater than functions