Improved the update_from_config function, using the current config.xml and no longer storing a reference to the config.