Trying to make portals work, not quite there yet