Changing state to isRunning.