Middleware changes for HIF.
Preparation for globescope app.