Changed online training if statement