Added missing check for greater than or equals.