Changed alerts to work with subnets