Updated code because of changes to the config file API