Added Clear history function