Update for changed portal code