Moved functions into IPInfo class