Added API for clear history