SMG - State Machine Generator