Removed undo/redo code