Pipeline is adapted from the values of middlewares submap