diff --git a/sites/all/modules/metatags_quick/metatags_quick.module b/sites/all/modules/metatags_quick/metatags_quick.module
index 39d38fc..3ec6cb3 100644
--- a/sites/all/modules/metatags_quick/metatags_quick.module
+++ b/sites/all/modules/metatags_quick/metatags_quick.module
@@ -115,6 +115,27 @@ function metatags_quick_entity_load($entities, $type) {
 }
 
 /**
+ * 
+ */
+function metatags_quick_page_build($page) {
+  $meta_list = _metatags_quick_add_head();
+  foreach ($meta_list as $meta_item) {
+    // Skip meta tags that do not belong to the currently displayed page.
+    if (isset($meta_item['type']) && menu_get_object($meta_item['type']) != $meta_item['entity']) {
+      continue;
+    }
+    $element = array(
+      '#tag' => 'meta',
+      '#attributes' => array(
+        'name' => $meta_item['name'],
+        'content' => $meta_item['content'],
+      ),
+    );
+    drupal_add_html_head($element, 'metatags_quick_' . $meta_item['name']);
+  }
+}
+
+/**
  * Implements hook_field_validate().
  *
  */
@@ -239,9 +260,13 @@ function metatags_quick_field_widget_form(&$form, &$form_state, $field, $instanc
 
 // Private functions area, may change without prior notice.
 
-// Adds meta to head.
-function _metatags_quick_add_head($item) {
+// Adds meta tag to internal storage that will be processed during page build.
+function _metatags_quick_add_head($item = FALSE) {
   static $added_meta = array();
+  static $meta_data = array();
+  if (!$item) {
+    return $meta_data;
+  }
   if (!empty($added_meta[$item['name']])) {
     return;
   }
@@ -257,14 +282,8 @@ function _metatags_quick_add_head($item) {
       $content = token_replace($content);
     }
     $content = trim(strip_tags($content));
-    $element = array(
-      '#tag' => 'meta',
-      '#attributes' => array(
-        'name' => $item['name'],
-        'content' => $content,
-      ),
-    );
-    drupal_add_html_head($element, 'metatags_quick_' . $item['name']);
+    $item['content'] = $content;
+    $meta_data[] = $item;
   }
   $added_meta[$item['name']] = TRUE;
 }
