Working Dijkstra