Now uses a configuration file to read the settings from.