Added serialization support for serialization only (no deserialization
yet)