Add phrendering middleware.