Change the way the document is generated (it is now more modular).