Added else statement to else if.