Added stuff for portals