Flatten Qid so as to marshal the struct more easily.