Used the isRunning method in place of my own version.