How does the Sync function work?