Fixing an issue with using Inc/Add/Remove patching
Trying to make map/reduce work in a more parallel mode
Fixing missing the end of the batch because of the for loop
Adding passing test