Added else if statement.