Addition of else if to if statement