Mini-framework'd the middleware.