Add in a more generic graph/dag based task pattern.