Updating sync logic