void SecurityWorker_DoWork(object sender, DoWorkEventArgs e) { SecurityClient SC = new SecurityClient(); e.Result = SC.HasPermissionToRun; TurntableActivated = SC.IsModuleActivated("RotatingScanner"); }