Logging and document updates.