Pain control after surgery is important for patient well-being and recovery. We are interested in determining whether we can improve the duration of action of a local anesthetic procedure (transversus abdominis plane block, or TAP block) by adding magnesium sulfate to local anesthetics given to patients after total abdominal hysterectomy with or without salpingo-oophorectomy.