Implement DAG creation. #0