Readded missing middleware