Add output buffering + start tweaking 404 errors