     }
     Serial.println(msg);
     delay(50);
-    sendMessage(msg);
+    sendMaster(msg);
     } else {
       if(debug == true) {Serial.println("nothing from OBD Bluetooth.");}
-      sendMessage("No data from OBD2.");
+      sendMaster("No data from OBD2.");
   }
   obd.flush();
 }
 
 void readGPS()
 {
-  if(debug == true) {Serial.println("reading GPS...");}
+  
   // This sketch displays information every time a new sentence is correctly encoded.
   if (ss.available() > 0) {
-    //delay(1000); // wait 1 sec to give time enough for the serial to receive all the stream
+    // delay(1000); // wait 1 sec to give time enough for the serial to receive all the stream
     while (gps.encode(ss.read())) {
+      if(debug == true) {Serial.println("reading GPS...");}
       displayInfo();
     }
   } else {
     if(debug == true) {Serial.println("nothing from GPS.");}
   }
   ss.flush();
-
+  
   if (millis() > 5000 && gps.charsProcessed() < 10)
   {
     if(debug == true) {Serial.println("No GPS detected: check wiring.");}

{
  Serial.begin(115200);
  bt.begin(9600);
  obd.begin(9600);
  ss.begin(GPSBaud);
}

void loop()
{
  readGPS();
  /*
  send_OBD_cmd("ATZ");      //send to OBD ATZ, reset
  delay(1000);

  } else {
    if(debug == true) {Serial.println("nothing from Master Bluetooth.");}
  }
  //bt.flush();
  bt.end();
}

void readOBD()
{
  if (obd.available() > 0) {
    if(debug == true) {Serial.println("reading OBD Bluetooth...");}
    String msg; // string to store entire command line
    delay(1000); // wait 1 sec to give time enough for the serial to receive all the stream
    while (obd.available()) {
