Added support for predecessors in task