Add clearHistory method