Marcus, which revision is the well worked one? I'd check it as soon as possible, but it's not easy to find a debug enviroument during Chinese new year.
EDIT: I finally get a debugger, try the latest revision. I fixed the wrong function error, and the EXIT issue; but there's still an issue with the EXIT statement and multiple line IF statement, I'll check it later seriously.