Document housekeeping