Added option for clearing history