Added undo points for all useful situations.