Add the extraction script
Modified extract script