Actually store document

Store actual document instead of stripped document.