Change generate_chunk function