Added FunctionStats so the high-level optimization algorithm can communicate to the low-level one