Using portal_type instead of Type