Added named function expression to middleware

This was useful while debugging / logging all the middleware in my app.