How does synchronization work?