An apparatus for performing medical procedures on an anatomical body includes an extension with an element near its distal end to be extended into the body, and a driver that moves the extension axially into the body, and that causes flexure of the distal end of the extension. The movement and flexure of the extension is driven by the driver from the proximal end of the extension, and an electronic controller directs the operation of the driver.