Apparatus for Minimal Invasive Surgery (MIS) comprising a master device, a slave device, a detector for detecting a parameter of, or associated with the slave device, and a shape locking system for locking the shape of the master device in response to a parameter detected by the detector.