Sync routine.