App main change, add HMM