Adding metadata to serializer/deserializer