HMM almost works