added Sync method