Made lat/long variable global