Modified duplicate IP checking to use a dictionary - orders of magnitude faster!