Changes else if to if.