Added function to display results in CSV format