Instead of just checking the previous task, allow any of the previous tasks to provide the requirement for a new task.