Adding a trivial scheduler based on DAG