Added chunkSize option.