This application describes a miniature implantable neurostimulator system for sciatic nerves and their branches. The implanted miniature neurostimulator is implanted in the leg and stimulates these nerves for the treatment of urinary or bowel incontinence. The miniature implantable neurostimulator has a low duty cycle permitting a small size with medically-acceptable longevity. The system includes a wireless programmer and patient-activated key fob.