Thanks qwerty, that worked just fine. I compiled it, and it works OK. No crashes to speak of (well, except for the preferences dialog). Looks a little funky, but seems to work!