Add dump_csv method