Add capability of searching for the path from main assistant to the leaf one