Feature: Undo history is now correctly preserved.