Change addNetwork to update if network already present.