Fixed: Incorrect reference to $ip.