Add models and (de)serialization methods.