protected function initializeIterator()
 {
     $apiRecipe = new Recipe(API_KEY, API_SECRET, API_URL);
     //Limit the fields retrieved.
     $apiRecipe->setFields(array('id', '_id', 'status', 'title', 'photos'));
     //$rows = $apiRecipe->getAllRecipes();
     $apiRecipe->setLimit(50);
     $rows = $apiRecipe->getRecipesModifiedSince(strtotime('-240 month'));
     // Return all the images for all the rows.
     $uri_array = array();
     foreach ($rows as $row) {
         $status = $row['status'];
         if ($status == "Published") {
             foreach ($row['photos'] as $photo) {
                 $filename = basename($photo['url']);
                 $uri_array[] = array('uri' => $photo['url'], 'filename_with_path' => 'public://recipe_hero_images/' . $filename);
                 //$uri_array += array('uri' => $row['photos']['url']);
                 break;
                 //Bail after the first image.
             }
         }
     }
     $uri_it = new \ArrayIterator($uri_array);
     return $uri_it;
 }