 	}
 	
 	if (debug) {
-		Serial.print(numValid); Serial.print(numInvalid); 
-		Serial.print(" ");
-	}
-	else {
-		delay(debounce);
-	}
+		Serial.print(numValid); Serial.print(numInvalid); Serial.print(" ");
+	}
+	//delay(debounce);
 	
 	if (numValid == sampleSize) {
 		return flag.detectedJobStart;

		return false;
	}
}

/*
	Calculate time elapsed in seconds.
*/
unsigned long calculateTime(unsigned long startTime) {
	return (millis() - startTime)/1000;
}

void soundFeedback(bool isReject) {
	if (isReject) {
		tone(speakerPin, rejectNote, rejectDuration);

		// if periodX and periodY IS NOT a valid pair
		if ( !inRange(periodX, periodY) ) {
			// check if enough negative signals have been detected
			// calculate elapsed time
			if (checkHistory(signals) == flag.detectedJobEnd) {
				elapsedTime = calculateTime(startTime);

				// if a job was detected, return
				if (startTime > 0 && elapsedTime > freeTime) {
					return elapsedTime;
				}
