Inserted panic Undo code