Added conditional statements for the remaining optional sitemap parameters