Added call to updateStateHistory