Internal serialization support.