Implemented AddNodes and AddReferences. works.