Change order of function and accumulator.