Sped up the shortest path