Updated config file update code.