Overcoming the HMM dilemma