Added additional debugging output for the reduce operations