Added FSM framework.