As you can see, IP::Check6 is called bellow. Function could be optimized though.