Variable ‘chunk_size’ set but not used