Added a new serialization class that will be more efficient and less
likely to become corrupt.