Code for getting tidy data.