Updating document