Added "IF MTTNx>0 THEN" to avoid error message when no states