Fixed logic for adding listed values to ip_pool.