Allow to pass reduction mapping to reduce function