Added variables to scripts. Writes ip file to /var/tmp/