Initial commit of imported deserialization code