Described embodiments include a system that includes acurrent source generator and a processor. The processor isconfigured to drive the current source generator to supply, forapplication to tissue of a subject, an electric current havingan amplitude that varies in accordance with a predefinedfunction of time, such that the amplitude initiallymonotonically increases to a maximum value. Other embodimentsare also described.