Fixed scripts so that they can read filtered data file