Use sync in parallel