Added function to get user location.