Moved reading of configuration file to independent class.