Add support for deserialising