Rework the sync workflow.