Adds debug code to double check sum/max/min global operations'