Added code to load a configuration file