Added ability to clear the history.