Updated location script.