Updated code to use sitemap.xml as well .