First data extraction scritp