Added new public method execute_cmd(); another wave of refactoring;