Also move the iterator variable for a for loop into the loop statement in function CARD_GetSerialNo()