The invention relates to an implantable medical device having a body comprising a composite material. The body has a variable cross section along a length, a first portion which forms a part of a surface of said body, and a packing portion. An insert is provided in the packing portion for providing an increased thickness to at least a part of the body.