Work on the serialization.