Use simple_write_to_buffer()