Changed the serial number generator to use a linear congruential PRNG instead of storing sequential serial numbers in a file.