Middleware for a dynamic SITE_ID added.