Use chainMapper and chainReducer