Moving reduce routines down into mesh where they are used