Add state to history data records