Added logic to record current and new version build ids.