Make helper function optionally return sane defaults
Refactor actions in preparation of interactive mode.
...and actually pull in the refactored code.
Implement interactive mode