Cleaning the final version of the document.