Trying a serialization-based approach.