Better handle updating an existing document.
Remove old comment.