Generating the requested document