In a method, at least one electrode is implanted in a pelvic muscle of a
patient and a control unit is provided. An electrical waveform is applied
to the pelvic muscle through the at least one electrode using the control
unit. A condition of the patient is treated in response to the
application of the electrical waveform. The condition of the patient is
fecal incontinence, interstitial cystitis, chronic pelvic pain or urine
retention.