Adds a caretaker to store document changes