Some work on using Dijkstra's Algorithm