Added functionality to populate CSV files.