 					elapsedTime = calcTime(startTime);
 
 					// if a job was detected, return
-					if ((startTime > 0) && (freeTime < elapsedTime) && (elapsedTime < 5*quota)) {
+					if ( (startTime > 0) && (freeTime < elapsedTime) && (elapsedTime < 5*quota)  ) {
 						return elapsedTime;
 					}
 					else {

					elapsedTime = calcTime(startTime);

					// Any valid accumulated time will be returned
					if ((startTime > 0) && (freeTime < elapsedTime) && (elapsedTime < 5*quota)) {
	          			return elapsedTime;
					}
					else {
						return 0;
					}

				}
			}
			else {

			// Job done
			getStringFromMem(displayNewTime);
			Serial.print(totalTime/60);
			Serial.print(F(":"));
			Serial.println(totalTime%60);
		}
	}
	// -------------------------------------------------------------------------
	// Write time data to card
	if ( (0 < elapsedTime) && (elapsedTime < 5*quota) ) {
		sendCommand(CMD_WRITE, blockID, machineID, keyA, totalTime);
		delay(waitforWriteResponse);
		isValidResponse = getResponse(readData);
