 	}
 }
 
+int processFreqsReset(char *cmd)
+{
+ resetAll();
+ processFreqs(cmd);
+}
+
+
+void selectCoil(int coilNo)
+{
+  for (int i=0; i<NUMCOILS; i++){
+      if (i == coilNo){
+        digitalWrite(coilSelect[i], LOW); // Set to transmit
+      }
+      else{
+        digitalWrite(coilSelect[i], HIGH); // Set to receive
+      }
+  }
+}
+
+
 
 int isCoilValid(int coilNo)
 {

  7  // Coil 8 
};

// Input serial buffer and size holder
char input[INPUT_SIZE + 1];
byte cmdsize = 0;

	  // Set states for the SPI enable pins
    for (int i = 0; i < NUMCOILS; i++){
    	pinMode(coilEnable[i], INPUT);
      pinMode(coilSelect[i], OUTPUT);
      digitalWrite(coilSelect[i], LOW);
    }

    // Start Serial and reduce timeout to 100ms
