Document Path finding function added