Added globalPath function