The data collection script