Updating history file