diff --git a/twitter-pull-listing.tpl.php b/twitter-pull-listing.tpl.php
index fa90638..4568605 100644
--- a/twitter-pull-listing.tpl.php
+++ b/twitter-pull-listing.tpl.php
@@ -32,10 +32,11 @@
 
   <?php if (is_array($tweets)): ?>
     <?php $tweet_count = count($tweets); ?>
-    
+
     <ul class="tweets-pulled-listing">
     <?php foreach ($tweets as $tweet_key => $tweet): ?>
       <li>
+      <?php if (!isset($tweet->no_tweets)): ?>
         <div class="tweet-author-wrapper clearfix">
           <div class="tweet-author-info clearfix">
             <div class="tweet-authorphoto">
@@ -51,19 +52,28 @@
               'data-width' => '75px',
             )));?>
         </div>
+        <?php endif; ?>
         <div class="tweet-text"><?php print twitter_pull_add_links($tweet->text); ?></div>
         <div class="tweet-footer">
-          <div class="tweet-time"><?php print l($tweet->time_ago, 'http://twitter.com/' . $tweet->screenname . '/status/' . $tweet->id);?></div>
+          <div class="tweet-time">
+          <?php if (isset($tweet->no_tweets)): ?>
+          <?php print t($tweet->time_ago); ?>
+          <?php else: ?>
+          <?php print l($tweet->time_ago, 'http://twitter.com/' . $tweet->screenname . '/status/' . $tweet->id);?>
+          <?php endif; ?>
+          </div>
+          <?php if (!isset($tweet->no_tweets)): ?>
           <div class="tweet-actions">
             <?php print l('Reply', "https://twitter.com/intent/tweet?in_reply_to=$tweet->id", array('attributes' => array('class' => 'twitter-reply'))); ?>
             <?php print l('Retweet', "https://twitter.com/intent/retweet?tweet_id=$tweet->id", array('attributes' => array('class' => 'twitter-retweet'))); ?>
             <?php print l('Favorite', "https://twitter.com/intent/favorite?tweet_id=$tweet->id", array('attributes' => array('class' => 'twitter-favorite'))); ?>
           </div>
+          <?php endif; ?>
         </div>
         <?php if ($tweet_key < $tweet_count - 1): ?>
           <div class="tweet-divider"></div>
         <?php endif; ?>
-        
+
       </li>
     <?php endforeach; ?>
     </ul>
diff --git a/twitter_pull.class.inc b/twitter_pull.class.inc
index 0681b51..4c73b98 100644
--- a/twitter_pull.class.inc
+++ b/twitter_pull.class.inc
@@ -34,88 +34,28 @@ class twitter_puller {
       throw new Exception(t('Twitter key may not be empty.'));
     }
 
+    // https://dev.twitter.com/rest/reference/get/search/tweets
+    // count max = 100
     $num = intval($this->num_items);
-    if ($num <= 0 || $num > 200) {
-      throw new Exception(t('Number of Twitter items to pull must be a positive integer less than or equal to 200.'));
+    if ($num <= 0 || $num > 100) {
+      throw new Exception(t('Number of Twitter items to pull must be a positive integer less than or equal to 100.'));
     }
 
   }
 
   function get_items() {
 
-    /* First try to use the twitter module to get the tweets
-     * At some point, authentication will be required and if you have the
-     * twitter module set up properly, it will handle the authenticated session.
-     */
-    if ($this->twitter_get_items()) {
-      return;
-    }
-
-    watchdog('Twitter Pull', 'Twitter Pull is using an Unauthenticated request to twitter apis.  Download, enable and configure the twitter module to allow for authenticated requests.');
-    $prefix = drupal_substr($this->twitkey, 0, 1);
-    $slash = strpos($this->twitkey, '/', 1);
-    $num = intval($this->num_items);
-    $rts = !empty($this->rts)?'1':'false';
-    $exclude_replies = !empty($this->exclude_replies)?'true':'false';
-
-    // lists have the format @username/listname
-    if ($prefix == '@' && $slash !== FALSE) {
-      $username = drupal_substr($this->twitkey, 1, $slash - 1);
-      $listname = drupal_substr($this->twitkey, $slash + 1);
-      $url = 'http://api.twitter.com/1/' . urlencode($username) . '/lists/' . urlencode($listname) . '/statuses.json?per_page=' . $num;
-    }
-    // if the first character is @, then consider the key a username
-    elseif ($prefix == "@") {
-      $key = drupal_substr($this->twitkey, 1);
-      $url = 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=' . urlencode($key) . '&include_rts=' . $rts . '&count=' . $num . '&exclude_replies=' . $exclude_replies;
-    }
-    // if the first character is ~, then consider the key a favorites feed
-    elseif ($prefix == "~") {
-      $key = drupal_substr($this->twitkey, 1);
-      $url = 'http://api.twitter.com/1/favorites/' . urlencode($key) . '.json?count=' . $num;
-    }
-    // otherwise, use the key as a search term
-    else {
-      if ($num > 100) {
-        $num = 100;
-      }
-      $url = 'http://search.twitter.com/search.json?q=' . urlencode($this->twitkey) . '&rpp=' . $num;
-    }
-
-    $ret = drupal_http_request($url, array('timeout' => 2));
+   /**
+    * Use the twitter module to fetch the results.
+    *
+    *  - The twitter module will use an authenticated session to fetch the tweets
+    *  - via the twitter 1.1 API.
+    */
 
-    if ($ret->code < 200 || $ret->code > 399) {
-      $errmsg = t('An unknown error occurred.');
-      if (isset($ret->error) && !empty($ret->error)) {
-        $errmsg = check_plain($ret->error);
-      }
-      elseif (isset($ret->data) && !empty($ret->data)) {
-        $errdata = json_decode($ret->data);
-        if (isset($errdata->error) && !empty($errdata->error)) {
-          $errmsg = check_plain($errmsg->error);
-        }
-      }
-      if ($ret->code == 400) {
-        $errmsg .= ' ' . t('This site may be subject to rate limiting. For more information, see: http://apiwiki.twitter.com/Rate-limiting');
-      }
-      throw new Exception(t('Could not retrieve data from Twitter.') . ' ' . $errmsg);
-    }
-
-    $items = json_decode($ret->data);
-    $this->parse_items($items);
-
-  }
-
-  /**
-   * Use the twitter module to get the results.
-   *
-   *  - The twitter module will use an authenticated session to get the tweets
-   *  - via the twiter 1.1 API.
-   */
-  function twitter_get_items() {
     // Check for the twitter module.
     if (!module_exists('twitter')) {
-      return FALSE;
+      watchdog('Twitter Pull', 'Twitter module is not installed. Please install. No tweets can be pulled.');
+      return(0);
     }
     // Load the twitter module.
     module_load_include('inc', 'twitter');
@@ -125,28 +65,28 @@ class twitter_puller {
     $slash = strpos($this->twitkey, '/', 1);
     $num = intval($this->num_items);
     $key = drupal_substr($this->twitkey, 1);
-    $rts = !empty($this->rts)?'1':'false';
-    $exclude_replies = !empty($this->exclude_replies)?'true':'false';
+    $rts = !empty($this->rts) ? '1' : 'false';
+    $exclude_replies = !empty($this->exclude_replies) ? 'true' : 'false';
 
     // Start building the parameters for the twitter api.
     $params = array(
       'count' => $num,
     );
 
-    // Determin the type of request.
+    // Determine the type of request.
     // Set up the path and params according to the type of request.
     switch ($prefix) {
-      case "@":
+      case '@':
         if ($slash === FALSE) {
           // Just a normal user timeline.
-          $path                         = "statuses/user_timeline";
+          $path                         = 'statuses/user_timeline';
           $params['screen_name']        = $key;
           $params['include_rts']        = $rts;
           $params['exclude_replies']    = $exclude_replies;
         }
         else {
           // Since we have at least one slash, we are going to get a list.
-          $path                         = "lists/statuses";
+          $path                         = 'lists/statuses';
           $params['owner_screen_name']  = drupal_substr($this->twitkey, 1, $slash - 1);
           $params['slug']               = drupal_substr($this->twitkey, $slash + 1);
           $params['include_rts']        = $rts;
@@ -154,41 +94,42 @@ class twitter_puller {
         }
         break;
 
-      case "~":
+      case '~':
         // Looking for favorites.
-        $path                         = "favorites/list";
+        $path                         = 'favorites/list';
         $params['screen_name']        = $key;
         break;
 
       default:
         // Default to a not=rmal search.
-        $path             = "search/tweets";
+        $path             = 'search/tweets';
         $params['count']  = $num > 100 ? 100 : $num;
         $params['q']      = $this->twitkey;
         break;
     }
 
     $twitter = twitter_connect();
+
     if (!$twitter) {
       watchdog('Twitter Pull', 'Twitter module is not properly configured and could not be used.');
-      return FALSE;
+      return(0);
     }
 
     // Try to load the status via the twitter api (from the twitter module).
-    $result = $twitter->call($path, $params, "GET");
+    $result = $twitter->call($path, $params, 'GET');
 
     // Create/Empty the tweets array.
     $this->tweets = array();
 
-    // Search results return metadata and the rusults in a sub-array
+    // Search results return metadata and the results in a sub-array
     // We need to parse the actual result array.
     $result = isset($result['statuses']) ? $result['statuses'] : $result;
 
     // Proccess the tweets for twitter_pull compatibility.
     $this->parse_items($result);
 
-    // Return if we got any results.
-    return (count($this->tweets) > 0);
+    // Return the number of results.
+    return(count($this->tweets));
   }
 
   function parse_items($items) {
@@ -213,7 +154,7 @@ class twitter_puller {
         }
         // when importing lists $user is an array and not an object, secure $user as object.
         $twitter_user = (object) $twitter_user;
-        
+
         $obj->id = check_plain($item->id_str);
         // The name is the user's 'human-readable' name.
         $obj->username = check_plain(!empty($twitter_user->name) ? $twitter_user->name : $item->from_user);
diff --git a/twitter_pull.install b/twitter_pull.install
index 9a83e60..0bb27a8 100644
--- a/twitter_pull.install
+++ b/twitter_pull.install
@@ -26,13 +26,13 @@ function twitter_pull_requirements($phase) {
       return array(
         'twittter_pull_auth' => array(
           'title' => t('Twitter Pull Authentication'),
-          'description' => t('Twitter Pull requires the !module to use the new Twitter API.  The twitter API you are currently using will cease to function in the near future.  See !link.', 
+          'description' => t('Twitter Pull requires the !module to use the new Twitter API. See !link.', 
                               array(
                                 '!link' => l('new twitter api information', 'https://dev.twitter.com/blog/changes-coming-to-twitter-api'),
                                 '!module' => l('Twitter module', 'http://drupal.org/project/twitter'),
                               )
                           ),
-          'value' => t('Using Unauthenticated API'),
+          'value' => t('Unable to pull feeds from Twitter.'),
           'severity' => REQUIREMENT_WARNING,
         ),
       );
@@ -45,7 +45,7 @@ function twitter_pull_requirements($phase) {
       return array(
         'twittter_pull_auth' => array(
           'title' => t('Twitter Pull Authentication'),
-          'description' => t('The twitter module does not have any authorized accounts.  You must authorize at least one account in order for twitter pull to be able to authenticate with Twitter.  Go to !link to add an account.', array('!link' => l('the Twitter module accounts page', 'admin/config/services/twitter'))),
+          'description' => t('The twitter module does not have any authorized accounts. You must authorize at least one account in order for twitter pull to be able to authenticate with Twitter.  Go to !link to add an account.', array('!link' => l('the Twitter module accounts page', 'admin/config/services/twitter'))),
           'value' => t('Using Unauthenticated API'),
           'severity' => REQUIREMENT_WARNING,
         ),
diff --git a/twitter_pull.module b/twitter_pull.module
index 48832ec..b56f409 100644
--- a/twitter_pull.module
+++ b/twitter_pull.module
@@ -19,7 +19,17 @@ function twitter_pull_cache_length() {
 }
 
 function twitter_pull_empty_message() {
-  return variable_get('twitter_pull_empty_message', TWITTER_PULL_EMPTY_MESSAGE);
+
+  $obj = new stdClass();
+  $obj->text = variable_get('twitter_pull_empty_message', TWITTER_PULL_EMPTY_MESSAGE);
+  $obj->timestamp = time();
+  $obj->no_tweets = 1;
+  $obj->id = '';
+  $obj->username = '';
+
+  $tweet[] = $obj;
+
+  return($tweet);
 }
 
 /**
@@ -127,8 +137,12 @@ function twitter_pull_render($twitkey, $title = NULL, $num_items = NULL, $themek
   $ret = theme($themekey, array('tweets' => $tweets, 'twitkey' => $twitkey, 'title' => $title, 'lazy_load' => $lazy_load));
 
   if (empty($ret) && !empty($tweets)) {
-    $errmsg = t("Non-empty list of tweets returned blank space after applying theme function. Most probably you are passing invalid/unregistered theme key or tpl file corresponding to the theme key does not yet exist. Please fix the problem.");
-    watchdog('Twitter Pull', $errmsg, array(), WATCHDOG_WARNING);
+    watchdog(
+    	'Twitter Pull',
+    	t('Non-empty list of tweets returned blank space after applying theme function. Most probably you are passing invalid/unregistered theme key or tpl file corresponding to the theme key does not yet exist. Please fix the problem.'),
+    	array(),
+    	WATCHDOG_WARNING
+    );
     $ret = t('Errors occured while trying to retrieve tweets. Please check Watchdog log messages.');
   }
 
@@ -160,28 +174,37 @@ function twitter_pull_retrieve($twitkey, $num_items = NULL, $rts = NULL, $exclud
   $cache = cache_get($cache_key, TWITTER_PULL_CACHE_TABLE);
 
   $tweets = array();
+  $items_pulled = 0;
 
   if (!empty($cache) && !empty($cache->data) && (time() < $cache->expire)) {
-    $tweets =  $cache->data;
+    // Debug
+    //watchdog('Twitter Pull', 'Using current cache data');
+    $tweets = $cache->data;
   }
   else {
     try {
       $puller = new twitter_puller($twitkey, $num_items);
       $puller->rts = $rts;
       $puller->exclude_replies = $exclude_replies;
-      $puller->get_items();
+      $items_pulled = $puller->get_items();
       $tweets = $puller->tweets;
     }
     catch (Exception $e) {
       watchdog('Twitter Pull', $e->getMessage(), array(), WATCHDOG_WARNING);
       if (!empty($cache) && !empty($cache->data)) {
-        return $cache->data;
-      }
-      else {
-        return twitter_pull_empty_message();
+	    watchdog('Twitter Pull', 'Using stale cache data due to exception');
+        return($cache->data);
       }
     }
 
+    if ($items_pulled == 0) {
+        watchdog(
+            'Twitter Pull',
+            'No tweets pulled - either no tweets available or error connecting to twitter api host.'
+        );
+    	return(twitter_pull_empty_message());
+    }
+
     if (!empty($tweets) && is_array($tweets)) {
       $cache_length = twitter_pull_cache_length() * 60; //-- in the settings we indicate length in minutes, here we need seconds.
       cache_set($cache_key, $tweets, TWITTER_PULL_CACHE_TABLE, REQUEST_TIME + $cache_length);
@@ -238,7 +261,7 @@ function twitter_pull_block_view($delta = '') {
   $info = twitter_pull_block_data();
   $b_info = $info["$delta"];
   $content = twitter_pull_render($b_info->tweetkey, $b_info->title, $b_info->number_of_items, $b_info->theme_key, $b_info->lazy_load);
-  return array("subject" => "", "content" => $content);
+  return array('subject' => '', 'content' => $content);
 }
 
 /*
