Added the save history feature