Iterate until there is no no data left.