Made some small changes so that this program can be used in conjunction with driftnet, although performance with driftnet is not terrific yet