Set auto-accessor for IsRunning state identifier.
Code reorganization, part II.
Fixed code analysis issues.
Now using private function for command execution.