Wrote final document