Update HMM