Added adding predecessors to an activity.