Add ability to do a dry run (only parameter values are saved to the output file)

Part of this functionality was added in the previous commit