Map on the middleware