Keep track of last written serial number