Added option '--only-summary'. Only print stats at end.