Added a (broken) undo function