Updated BE to aggregate records locally and fixed out_handler in FE.