New method for parsing the config.