Some basic serialization.