Works for iterators now, albeit kludgily in the case of DAG.