Add ipscan function