A method is provided, including implanting at least a first tissue-engaging element (60a) in a first portion of tissue in a vicinity of a heart valve (4) of a patient, implanting at least a second tissue-engaging element (60b) in a portion of a blood vessel (8, 10) that is in contact with an atrium (6) of a heart (2) of the patient, and drawing at least a first leaflet of the valve (4) toward at least a second leaflet of the valve (4) by adjusting a distance between the portion of the blood vessel (8, 10) and the first portion of tissue in the vicinity of the heart valve (4) of the patient. Other applications are also described.