Added correct pathfinding.