Prototype jahmm with separate main and Rjahmm.