Made TaskList implement Iterable instead of just returning an iterator.