Main function now loads csv file as data.