Added history file save/restore