Minor updates to serialize_buffer