A device for irrigation and/or insufflation during endoscopic surgery/procedures in a body cavity, comprising a first fluid pump device to deliver fluid to the body cvity, a second fluid pump device to move fluid from the body cavity, a control unit connected to the first and/or second fluid pump device, a blood pressure measuring device, wherein the control unit to derives a control signal based on a signal from the blood pressure measuring device, and sends the control signal to the first fluid and/or second fluid pump device, wherein the control signal is derived by processing the signal from the blood pressure measuring device using a correlation factor in the device, dependent on the relationship between a blood pressure measurement signal, and a perfusion pressure of the body cavity, wherein the first and/or second fluid pump device controls the pressure in the body cavity based on the control units control signal.