           }
           else
           {
-            for (uint8_t i = 0; i < 6; i++)
-            {
-                Serial.print(" "); dormitory == 3 ?
-                Serial.print(nfc_handler.KeyA_D3_part1[i], HEX) :
-                Serial.print(nfc_handler.KeyA_D4[i], HEX);
-            }
-              nfc_handler.success = dormitory == 3 ?
+            //Key display debug
+            dormitory == 3 ?
+                displayKeyDebug(nfc_handler.KeyA_D3_part1) :
+                displayKeyDebug(nfc_handler.KeyA_D4);
+            nfc_handler.success = dormitory == 3 ?
               nfc.mifareclassic_AuthenticateBlock (nfc_handler.uid,
                 nfc_handler.uidLength,
                 nfc_handler.currentblock,

      for (nfc_handler.currentblock = 0; nfc_handler.currentblock < 64; nfc_handler.currentblock++)
      {
        // Check if this is a new block so that we can reauthenticate
        if (nfc.mifareclassic_IsFirstBlock(nfc_handler.currentblock)) nfc_handler.authenticated = false;

        // If the sector hasn't been authenticated, do so first
        if (!nfc_handler.authenticated)

           
          if (nfc_handler.currentblock >= 5 * 4 && nfc_handler.currentblock <= 6 * 4)
          {
            //Key display debug
            dormitory == 3 ?
                displayKeyDebug(nfc_handler.KeyA_D3_part2) :
                displayKeyDebug(nfc_handler.KeyA_D4);
            nfc_handler.success = dormitory == 3 ?
              nfc.mifareclassic_AuthenticateBlock (nfc_handler.uid,
                nfc_handler.uidLength,
                nfc_handler.currentblock,
