Is a reduce function not required? Above just has a pre-processing operation followed by two post processing operations.