Added save settings when factory settings are detected