Add condition to parse each type of config file