Added final elements to make else if statement work.