New middleware logic and site object