I need to have my ezpages on my site map

I got this mod and installed it fine

http://www.zen-cart.com/index.php?ma...roducts_id=222

Unfortunatly it doesn't do anything. I did some back end research and for this code here
Code:
	  <!-- BOF: CODE TO add EZ-PAGES to Sitemap -->
	<?php
	$boxes = array('ezpages.php');
	$column_box_default='tpl_box_default_sitemap.php';
	for($ib=0,$nb=sizeof($boxes);$ib<$nb;$ib++) {
		$require_file = "";
		if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $boxes[$ib]) ) {
		 $require_file = DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $boxes[$ib];
		} elseif ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $boxes[$ib]) ) {
		 $require_file = DIR_WS_MODULES . 'sideboxes/' . $boxes[$ib];
		}
		if ($require_file != "") {
			$box_id = zen_get_box_id($boxes[$ib]);
			require($require_file);
		}
	}
	?>
<!-- EOF: CODE TO add EZ-PAGES to Sitemap -->
I echoed out the sizeof($boxes) and its only 1.

It should be picking up 9 ezpages.

So... now I'm stuck.

Please help!