Change serialization method