External electromagnetic stimulation of the interior of the body by applying three or more electrodes to the exterior of the patient to establish at least two electrical paths across the interior of the patient, determining impedance information representative of an impedance distribution across the interior of the body, delivering an electromagnetic waveform across each of the at least two electrical paths, wherein at least one parameter of the waveform is selected using the impedance information to produce a selected current density distribution at one or more locations within the interior of the body.