Adding MiddlewareMixin class