Improved example to show sync history