Issue #49: CSV export now works for large amounts of data