A device (40) for improving the function of a heart valve comprises a first loop-shapedsupport (42), which is configured to abut a first side of the heart valve, and afirst flange unit (50) being connected to said first loop- shaped support. Theflange unit is configured to be arranged against said annulus (20) when said firstloop- shaped support is abutting said heart valve.