Updating config logic