Added pathfinding part.