compute_and_write_statistics has lots and lots of arguments, maybe we could just pass the 6-uple statistical_output_containers to it?