Add in remaining then;fi to if statement