This script prepares the data for analysis.