Added an else statement to make coding easier and less chance for error.