Finish the final document