It works, thanks! Now if only I could figure out that pesky segfault...