Stubbing Dijkstra problem.