A system (1) for altering the geometry of a heart (100), comprising an annuloplasty ring a set of elongate annulus-papillary tension members (21, 22, 23, 24), adapted for forming a link between said ring (10) and a papillary muscle, and a first set of papillary anchors (30) for connecting each of the tension members (21, 22, 23, 24) to the papillary muscle and where said annuloplasty ring (10) has at least one aperture (12, 13) where each of said annulus-papillary tension members (21, 22, 23, 24) are extendable through said ring (10) through said apertures (11, 12, 13), and through an atrium to an exterior side of said atrium, such that the distance of each link between the annulus and the muscles is adjustable from a position exterior to the heart while the heart is beating.