Surgery may have a number of undesirable or harmful effects, such as infection, hemorrhage, inflammation, scarring, loss of function, or changes in local blood flow. They can be reversible or irreversible, and a compromise must be found by the physician and the patient between the beneficial or life-saving consequences of surgery versus its adverse effects. For example, a limb may be lost to amputation in case of untreatable gangrene, but the patient's life is saved. Presently, one of the greatest advantages of minimally invasive surgery, such as laparoscopic surgery, is the reduction of adverse effects.