Adjusted portals

Also updated @bliptec's portal code