Create pi.segment_helper.php