Implemented loading from a config file