Finish the first iteration of the document