Added CheckAppRunning