Add missing middleware.