Implement deserializing.