Updated pathfinding