Modified path finder.