Dijkstra minor fix, print statements