Added timeout method for getting location.