A device for improving the function of a heart valve comprises a first loop-shaped support, which is configured to abut a first side of the heart valve, and a first flange unit being connected to said first loop-shaped support. The flange unit is configured to be arranged against said annulus when said first loop-shaped support is abutting said heart valve.