Not sure what you're using the boolean for?  You seem to only use the computed value from the function IsRunning() ?