Added XVIewMiddleware.