Adds shortest path finding.