Filling out upgrade-ext logic.