Path Selection function and location