Great! It's to bad that the debugging capabilities aren't a little more robust. By the way, that fix to the index in the declaration of the 2 arrays fixed the problem with those couple def_* functions... I'm surprised it even ran at all! I tried to run again when I was playing with my struct idea, had problems, so commented out to original code and crashed before things even really got running, which caused me to reexamine my shortcomings : )

For debugging... you just create a panel to display your debug* vars?