appendDocument modified.