I guess I like working quickly and dirty
I'll get back to it some time though.
Edit: In that while loop, the forum decided to format my code's [ i ] as vBcode and instead of putting the [ i ] there, it put the code that followed in Italic, so it's always evaluating a[0]. I didn't notice what the problem was at the time, so I just added a [/ i ] at the end of the code block. Oh, well.
