Add locationManager function