Add code for setting public IPs, changed var name