Sync() added to update the local xml.