Added checking convergence
Added HiddenMM struct