Extracting data subset script