diff --git a/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module b/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module
index bfaa345..96604a0 100644
--- a/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module
+++ b/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module
@@ -220,6 +223,7 @@ function xmlsitemap_node_create_link(stdClass $node) {

   // The following values must always be checked because they are volatile.
   $node->xmlsitemap['loc'] = $uri['path'];
+  $node->xmlsitemap['status'] = $node->nid ? xmlsitemap_node_status($node) : $settings['status'];
   $node->xmlsitemap['lastmod'] = count($timestamps) ? max($timestamps) : 0;
   $node->xmlsitemap['access'] = $node->nid ? xmlsitemap_node_view_access($node, drupal_anonymous_user()) : 1;
   if (module_exists('entity_translation') && entity_translation_enabled_bundle('node', $node->type) && isset($node->translations)) {
@@ -233,6 +237,26 @@ function xmlsitemap_node_create_link(stdClass $node) {
 }

 /**
+ * Determine the current node status.
+ *
+ * @param $node
+ *   The node object on which the operation is to be performed, or node type
+ *   (e.g. 'forum') for "create" operation.
+ * @return
+ *   Status of Node.
+ *
+ */
+function xmlsitemap_node_status($node) {
+  if ($node->status == 0) {
+    $status = 0;
+  }
+  else {
+    $status = 1;
+  }
+  return $status;
+}
+
+/**
  * Determine whether a user may view the specified node.
  *
  * @param $node