History is written.
Refactored out the run_one_command function.
Submitted.