A device, such as an integrated circuit or an electronic circuit component is affixed to a substrate. A first encapsulation structure encases a first integrated circuit and has at least one groove formed therein. An adhesive partially fills the groove in the first encapsulation structure. A second integrated circuit is affixed to the first encapsulation structure by use of the adhesive in the groove. A second encapsulation structure at least partially encases the first encapsulation structure, the first integrated circuit, and the second integrated circuit.