A device for improving the function of a heart valve is disclosed, comprising a support member at least partially formed from a shape memory material operable to assume a first activated shape, a second activated shape and an inactivated shape, said support member being configured to abut one side of the valve and being arranged to conform to the shape of at least a part of the valve annulus upon said shape memory material assuming said first activated shape, and said support member being configured to assume a desired, altered course for remodeling the valve annulus upon said shape memory material assuming said second activated shape, wherein said shape memory material is arranged such that heating the shape memory material to a first temperature will bring the shape memory material to assume said first activated shape and further heating of the shape memory material to a second temperature will bring the shape memory material to assume said second activated shape.