Updates to scripts, ip discovery part