Added reset and removal of history