Fixed weighting of yield histograms.
Testing global variables again.