 		digitalWrite(ledPin, LOW);
 	}
 
-	int buttonState = digitalRead(buttonPin);
+	/*int buttonState = digitalRead(buttonPin);
 	delay(waitforReadResponse);
-	buttonState = digitalRead(buttonPin);
+	buttonState = digitalRead(buttonPin);*/
 
 	sendCommand(CMD_READ, blockID, machineID, keyA, NULL, 0);
 	delay(waitforReadResponse);

	}

	// Reset timer on card and enable authorization if button has been pressed
	if (buttonState == HIGH) {
		digitalWrite(ledPin, LOW);
		delay(waitForFlush);
		while (1) {

			Serial.print(newTime%60);
			Serial.println(F(" seconds"));
			existingTime = newTime;
			// Reset timer on card
			sendCommand(CMD_WRITE, blockID, machineID, keyA, 0, 1);
			delay(waitforWriteResponse);
			Serial.println(F("Card reset"));
		}
