Middleware specs