Mainly working on beam.bunch.compute_statistics(). Profiling.