Added changes for reading config from file.