Names the middleware function

Provides better debug tracebacks