More functions for portals.