Chunksize is optional