Add new serialization helper functions.