Finished the extractor script