Added iteration over tasks