elementsWithProcessId with default arg (current rank)