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 disclosed. The device includes at least one pump device having a pump. The pump includes: a piston adapted for reciprocating movement, an operating device for operating the piston, and a heart contacting organ. The movement of the piston assists the pump function of the heart through the heart contacting organ.