Adding "first" and "persist" functions to Portals