ADD: Controller and dijkstra's algo