Working on csv generation