Put in some more "IF MTTNx>0 THEN" to avoid error messages when no
states.