Updated the mechanism for static files