Add the final document