Adding greater than and less than checking