A client develops a gallstone that becomes lodged in the common bile duct. An endoscopic sphincterotomy is scheduled. The client asks the nurse what will be done to prevent pain. What should the nurse reply?