Update the history