Inserting undoable actions works, but deleting them doesn't. Undo and redo for some reason don't entirely work either.