Added a config file mechanism.