Changed max_bytes param to chunk_size