Made the Middleware class public.