Added Sync functionality