foreach (array_unique($s) as $uid) {
         $steward_points = steward_points($uid);
         if ($steward_points > 0) {
             $steward_info = explode("^", brewer_info($uid));
             if (!empty($steward_info['1'])) {
                 $steward_name = ucwords(strtolower($steward_info['1'])) . ", " . ucwords(strtolower($steward_info['0']));
                 $output_stewards .= "<tr>";
                 $output_stewards .= "<td class='bdr1B_gray'>" . $steward_name . "</td>";
                 $output_stewards .= "<td class='data bdr1B_gray'>";
                 if (validate_bjcp_id($steward_info['4'])) {
                     $output_stewards .= strtoupper(strtr($steward_info['4'], $bjcp_num_replace));
                 } else {
                     $output_staff .= "&nbsp;";
                 }
                 $output_stewards .= "</td>";
                 $output_stewards .= "<td class='data bdr1B_gray'>" . steward_points($uid) . "</td>";
                 $output_stewards .= "</tr>";
             }
         }
     }
 }
 if ($totalRows_staff > 0) {
     do {
         $st[] = $row_staff['uid'];
     } while ($row_staff = mysql_fetch_assoc($staff));
     $st_running_total[] = "";
     foreach (array_unique($st) as $uid) {
         if (array_sum($st_running_total) < $staff_points_total) {
             $staff_info = explode("^", brewer_info($uid));
             $st_running_total[] = $staff_points;
             if (!empty($staff_info['1'])) {
     if ($judge_info['0'] != "" && $judge_info['1'] != "" && !validate_bjcp_id($judge_info['4'])) {
         if (!empty($uid)) {
             $judge_name = strtr(ucwords(strtolower($judge_info['0'])), $html_remove) . " " . strtr(ucwords(strtolower($judge_info['1'])), $html_remove);
             $output .= "\t\t<JudgeData>\n";
             $output .= "\t\t\t<JudgeName>" . $judge_name . "</JudgeName>\n";
             $output .= "\t\t\t<JudgeID>" . strtoupper(strtr($judge_info['4'], $bjcp_num_replace)) . "</JudgeID>\n";
             $output .= "\t\t\t<JudgeRole>BOS Judge</JudgeRole>\n";
             $output .= "\t\t\t<JudgePts>1.0</JudgePts>\n";
             $output .= "\t\t\t<NonJudgePts>0.0</NonJudgePts>\n";
             $output .= "\t\t</JudgeData>\n";
         }
     }
 }
 // Stewards without a properly formatted BJCP IDs in the system
 foreach (array_unique($s) as $uid) {
     $steward_points = steward_points($uid);
     if ($steward_points > 0) {
         $steward_info = explode("^", brewer_info($uid));
         if ($steward_info['0'] != "" && $steward_info['1'] != "" && !validate_bjcp_id($steward_info['4'])) {
             $steward_name = ucwords(strtolower($steward_info['0'])) . " " . ucwords(strtolower($steward_info['1']));
             $output .= "\t\t<JudgeData>\n";
             $output .= "\t\t\t<JudgeName>" . $steward_name . "</JudgeName>\n";
             $output .= "\t\t\t<JudgeRole>Steward</JudgeRole>\n";
             $output .= "\t\t\t<JudgePts>0.0</JudgePts>\n";
             $output .= "\t\t\t<NonJudgePts>" . $steward_points . "</NonJudgePts>\n";
             $output .= "\t\t</JudgeData>\n";
         }
     }
 }
 // Staff Members without a properly formatted BJCP IDs in the system
 foreach (array_unique($st) as $uid) {
     foreach (array_unique($s) as $uid) {
         $steward_points = steward_points($uid);
         if ($steward_points > 0) {
             $steward_info = explode("^", brewer_info($uid));
             if (!empty($steward_info['1'])) {
                 $steward_name = ucwords(strtolower($steward_info['1'])) . ", " . ucwords(strtolower($steward_info['0']));
                 $output_stewards .= "<tr>";
                 $output_stewards .= "<td>" . $steward_name . "</td>";
                 $output_stewards .= "<td>";
                 if (validate_bjcp_id($steward_info['4'])) {
                     $output_stewards .= strtoupper(strtr($steward_info['4'], $bjcp_num_replace));
                 } else {
                     $output_staff .= "&nbsp;";
                 }
                 $output_stewards .= "</td>";
                 $output_stewards .= "<td>" . steward_points($uid) . "</td>";
                 $output_stewards .= "</tr>";
             }
         }
     }
 }
 if ($totalRows_staff > 0) {
     do {
         $st[] = $row_staff['uid'];
     } while ($row_staff = mysql_fetch_assoc($staff));
     $st_running_total[] = "";
     foreach (array_unique($st) as $uid) {
         if (array_sum($st_running_total) < $staff_points_total) {
             $staff_info = explode("^", brewer_info($uid));
             $st_running_total[] = $staff_points;
             if (!empty($staff_info['1'])) {