Smaple sync code