Corrected issue with else if statements reading incorrectly.