Edits to perform_stats.py.