Added a MI script and tried out some hmm stuff