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