Added mechanism for reading from config file.