 				}
 			}
 			// if periodX and periodY IS NOT a valid pair
-			if ( signals[i] == 0 ) {
+			if (signals[i] == 0) {
 				numValid = 0;
 				numInvalid += 1;
 				// check if enough negative signals have been detected

			}

			// if periodX and periodY IS a valid pair
			if ( signals[i] == 1 ) {
				numValid += 1;
				numInvalid = 0;
				// a job is detected when we get enough valid signals in a row

			// Begin signal monitoring logic
			periodX = pulseIn(driverX, HIGH);
			periodY = pulseIn(driverY, HIGH);
	    	signals[i] = isRange(periodX + periodY);

			// Only here temporarily for debugging
