How does synchronization with the cloud work?