Added isRunning method