Adding Advisor render middleware