Use internal function to compute location.