Rewritten serialization