A device (1) for irrigation and/or insufflation during endoscopic surgery/procedures in a body cavity (3), comprising a first fluid pump device (21) in fluid connection with the body cavity (3) via a fluid line (10), wherein the first fluid pump device (21) is adapted to deliver a fluid to the body cavity (3) a second fluid pump device (18) in fluid connection with the body cavity (3) connected via a fluid line (16), wherein the second fluid pump device (18) is adapted to move a fluid from the body cavity (3), a control unit (19) connected to the first fluid pump device (21) and/or the second fluid pump device (18), a blood pressure measuring device (20), connected to the control unit (19), wherein the blood pressure measuring device (20) is adapted to measure a systemic blood pressure, wherein the control unit (19) is adapted to derive a control signal based on a signal from the blood pressure measuring device (20), wherein the control unit (19) is further adapted to send the control signal to the first fluid pump device (21) and/or the second fluid pump device (18), wherein the control signal is derived by processing the signal from the blood pressure measuring device (20) by using a correlation factor stored in the device (1) wherein the correlation factor is dependent on the relationship between a blood pressure measurement signal, and a perfusion pressure of the body cavity (3), wherein the first fluid pump device (21) and/or the second fluid pump device (18) is adapted to control the pressure in the body cavity (3) based on said control signal received from the control unit (19).