         if (strstr(Modem_CommandBuffer, ("&K0")) != NULL)
         {
             Modem_flowControlEnabled = false;
+            EEPROM.write(ADDR_MODEM_FLOW, 0);
         }
         if (strstr(Modem_CommandBuffer, ("&K1")) != NULL)
         {
             Modem_flowControlEnabled = true;
-        }
-        /*
+            EEPROM.write(ADDR_MODEM_FLOW, 1);
+        }
+        if (strstr(Modem_CommandBuffer, ("&K?")) != NULL)
+        {
+            C64PrintIntln(EEPROM.read(ADDR_MODEM_FLOW));
+        }
         if (strstr(Modem_CommandBuffer, ("DL")) != NULL)
         {
             Modem_Dialout("",1);
             Modem_ResetCommandBuffer();  // This avoids port# string fragments on subsequent calls
-        }*/
+        }
 
         char *currentS;
         char temp[100];

}

#ifdef HAYES
// ----------------------------------------------------------
// Simple Hayes Emulation
// Portions of this code are adapted from Payton Byrd's Hayesduino - thanks!

boolean Modem_isCommandMode = true;
boolean Modem_isConnected = false;
boolean Modem_isRinging = false;
boolean Modem_EchoOn = EEPROM.read(ADDR_MODEM_ECHO);
boolean Modem_VerboseResponses = true;
boolean Modem_QuietMode = false;
boolean Modem_isDcdInverted = false;

boolean Modem_S0_AutoAnswer = false;
char    Modem_S2_EscapeCharacter = '+';

#define COMMAND_BUFFER_SIZE  81
char Modem_LastCommandBuffer[COMMAND_BUFFER_SIZE];
char Modem_CommandBuffer[COMMAND_BUFFER_SIZE];

int Modem_EscapeCount = 0;

void HayesEmulationMode()
{

        return;
    }*/

    lastHost = hostname;
    lastPort = port;

    Connect(hostname, port, false);
}
