The surgery typically takes 1 hour and is performed under anesthesia. The procedure is done in two parts: placing of the lead/electrodes in the epidural space and placing of the pulse generator under the skin in the abdomen or buttocks region.