Add -o option which logs statistics in CSV format