Added an if statement to work with any integer less than 2, including
negative numbers.