Embodiments of the present invention describe a system and method of stimulating nerves during a medical procedure including positioning one or more electrodes in electrical contact with one or more nerves of a patient and electrically stimulating the one or more nerves during a lower urinary, rectal or medical procedure affecting the bowel sufficient to affect one or more of bladder activity, prostate function, incontinence, or pain.