Added support for max error retry. Report latest datapoint to controller