Working on deserializer, really tricky to get to work