Apparatus is provided for repairing a valve (30) of a patient, the valve (30) including an annulus (40) and at least first and second leaflets (32 an d 34). The apparatus includes at least a first discrete segment (430) and a second discrete segment (440) of an annuloplasty structure (408), each segme nt being shaped to provide a respective lateral wall (462), each lateral wal l (462) being shaped to define at least one lumen of the respective segment (430 and 440). The apparatus further includes at least a first and a second control wire (480 and 490), each control wire (480 and 490) configured for s liding advancement through both the first and second segments (430 and 440). The first control wire (480) is configured to control a relative dispositio n of a first end (432) of the first segment (430) and a first end (442) of t he second segment (440). The second control wire (490) is configured to cont rol a relative disposition of a second end (434) of the first segment (430) and a second end (444) of the second segment (440). Other embodiments are al so described.