Added the feature to clear the history.