You're welcome
Eventhough I may be blind .. besides for the exchange of "return" for "halt", I don't see any difference between the code given.
As a sidenote, I would strongly recommend using "return" instead of "halt". Halt sometimes causes problems for other scripts in the same file.
Dana