Added synchronous pathfinding call