Make the extraction script compatible with official data