Add user location function.