Working on the document