Apparatus is provided for applying current to a nerve of a subject, including a housing, adapted to be placed in a vicinity of the nerve at least one cathode and at least one anode, fixed to the housing a passive electrode, fixed to the housing and a conducting element, which is electrically coupled to the passive electrode and is configured to extend to a remote location in a body of the subject at a distance of at least 1 cm from the housing. Other embodiments are also described.