[WIP] Extra DAG.js

Is the use of DAG even tested anywhere?