Add sitemap dump funtion to combat memory issues