Undo-erase functionality simplified some code