```while chunk_index < chunk_size```?