Record last step in the history