Adding last changes to the document