Adding code to serve dynamic content and 404 pages.