Adding entry undo and improving delete-related stuff.