A fastener cartridge can comprise a support portion, a tissue thickness compensator positioned relative to the support portion, and a plurality of fasteners positioned within the support portion and/or the tissue thickness compensator which can be utilized to fasten tissue. In use, the fastener cartridge can be arranged in a first jaw of a surgical fastening device, wherein a second jaw, or anvil, can be positioned opposite the first jaw. To deploy the fasteners, a staple-deploying member is advanced through the fastener cartridge to move the fasteners toward the anvil. As the fasteners are deployed, the fasteners can capture at least a portion of the tissue thickness compensator therein along with at least a portion of the tissue being fastened. The fastener cartridge can further comprise a gap setting element (22159a,22159b) which can be configured to control the distance between the anvil, the support portion, and/or the tissue thickness compensator.