Change the script to use a config file rather than flags for most settings.