Fixed problem with reduce where it was calling eachKvp which does not seem to make sense.