Typically the apparatus that controls the tip distance monitors the current flowing between the tip and the surface and controls a mechanical system to move the tip in such a manner as to stabilize the current flowing between the tip and the surface at some steady state value.