Combining FSMs and decision trees