Added code to show synchronization problems and solutions.