Connecting the leads to the pulse generator