Oh wait! I'm wrong. I forgot about the getopt() junk. Your loops are fine. It looks fine, commit it! -Matt