Small modifications to the script and config file