Apparatus is provided for applying current to a nerve, including a housing that is adapted to be placed in a vicinity of the nerve. First, second, and third electrodes are fixed to the housing at first, second, and third longitudinal sites of the housing, respectively. The first, second, and third electrodes do not come in direct physical contact with the nerve. The second site is between the first and third sites. The second electrode has an electrode surface axial length. The apparatus also includes first and second internal insulating elements, which are fixed to the housing between the first and second longitudinal sites, and between the second and third longitudinal sites, respectively. The first and second internal insulating elements are shaped so as to define, upon placement of the housing, a nerve axial distance between the first and second internal insulating elements that is less than the electrode surface axial length.