Preparing for undo/redo
Switched to logging