Finished implementing CSV download