A minimally invasive device for performing direct cardiac massage including an inflatable bladder mounted on a rigid inflation tube. The Bean Scripting Framework supports scripting on the OOP programming language-side, where the programming language runs and evaluates scripts, and also in cases where scripts run and control objects. Axial alignment of the latching member and the cooperating latching features is maintained by axially aligned, interacting surface features of the housing members.