Removed unused variables (numSerial and numClass)