I did consider storing it all in variables, but is memory usage not an issue then? .docx documents can get quite large, especially unpacked. It's why I didn't end up doing that, taking into account things like gif/png et al what can be included in a document.