Updated the script

Due to changes in Google's code the old code had stopped worked. Fixed
the same.