Implemented locatePath()