Simplified deserializer code