Update to djikstra