Added support for loading a configuration file