New FO opitimization macros with histograms