 //Keeps track of the number of messages to be sent to the server
 int qCount = 0;
 
+int loopCount = 0;
+
 //These arrays are what hold the different parts of the messages to be sent to the server
 String nodeIds[QMAX];
 int spacesAvail[QMAX];

      }
      qCount = 0;
    }
    timeout_init(5000);
  }
  
  response = xcomm.getMessage();

  This limits the sending of updates to the server by sending a maximum of 10 once every minute
  or once the array of requests reaches its maximum
  */
  if(loopCount > 9 || qCount == QMAX){
    if(qCount > 0){//will only send if q isn't empty
      DEBUG_PRINT(F("Made it to server update. Number of messages: "));
      DEBUG_PRINTLN(qCount);
