Speaking from a lofty position of complete ignorance about OUs, wouldn't a function be generally better? EnumOU($sKey,$iIndex) or something similar?