How can I undo multiple operations?