Added next as an attribute of tasks.