Basic serialization in place.