Remove println, add lazy to avoid unnecessary graph building while building the dag