Restructured get_data.R