Adding a function to server static files