Update device number.