Updating history.txt