Commented and altered process_data and its output