Update to ipc script, to figure out how many subnets are within other subnets.
second update, safety check