Changed the way to read the config.