Initial logic for sync is added.