added isRunning, higher level flag.