Function to get the serial number