Added better logic for Sitemap.xml