Modifies Sync function to send batches of metadata