Added new interfaces for ser/deser