Script works with internet connection now