Add 'type' field in FSM.