HMM working