Added functionality to update results based on valid netmask