Besides unraveling the functions in generate_statistics.py, the settings forwarding to all metrics changed.