Added support to model deserialization