Functioning methods minus the Dijkstra's ones