Modify make_csv method