Added flag to print output in csv format, more lightweight from the memory point of view