Refactored run_command_here