Better way to clear the history.