Update to include djikstra method.