An implantable device for improving the pump function of the heart of a human patient by applying an external force on the heart muscle is provided. The device comprises at least one pump device having a pump. The pump comprising: a piston adapted for reciprocating movement, an operating device for operating the piston, a heart contacting organ. The movement of the piston assists the pump function of the heart through said heart contacting organ.