X-rays may be taken during the surgery to determine if stones are stuck in the common bile duct.