Add code to check netmask