A surgical stapling instrument comprising: an anvil (766, 201004) configured to clamp a tissue; a circular stapling head assembly comprising a first row of staples and a second row of staples; a first staple driver configured to drive the first row of staples; a second staple driver configured to drive the second row of staples, wherein the first and second staple drivers are independently actuatable; said surgical stapling instrument being characterized in that it further comprises one or more sensors configured to sense a parameter associated with clamping of the anvil, the sensed parameter comprising a tissue gap, force during closure of the anvil, tissue creep, or force during firing, or any combination thereof; means (201092, 201144, 201146) for detecting a malformed staple in the first row of staples; a motor coupled to the anvil, the motor configured to move the anvil between a first position and a second position; and a control circuit coupled to the motor and in communication with the one or more sensors and the means for detecting a malformed staple in the first row of staples, by positioning an electrical circuit in the path of a properly formed staple, wherein the control circuit is configured to: set one of: a staple height of the first and second rows of staples to a first height, and an anvil gap for the first row of staples to a first gap, wherein a staple height of the first or second row of staples is a height of said staples after said staples have been fired; detect a malformed staple in the first row of staples; and if a malformed staple is detected in the first row of staples, set one of: a staple height for the second row of staples to a second height, and an anvil gap for the second row of staples to a second gap based on the sensed parameter. an anvil (766, 201004) configured to clamp a tissue; a circular stapling head assembly comprising a first row of staples and a second row of staples; a first staple driver configured to drive the first row of staples; a second staple driver configured to drive the second row of staples, wherein the first and second staple drivers are independently actuatable; said surgical stapling instrument being characterized in that it further comprises one or more sensors configured to sense a parameter associated with clamping of the anvil, the sensed parameter comprising a tissue gap, force during closure of the anvil, tissue creep, or force during firing, or any combination thereof; means (201092, 201144, 201146) for detecting a malformed staple in the first row of staples; a motor coupled to the anvil, the motor configured to move the anvil between a first position and a second position; and a control circuit coupled to the motor and in communication with the one or more sensors and the means for detecting a malformed staple in the first row of staples, by positioning an electrical circuit in the path of a properly formed staple, wherein the control circuit is configured to: set one of: a staple height of the first and second rows of staples to a first height, and an anvil gap for the first row of staples to a first gap, wherein a staple height of the first or second row of staples is a height of said staples after said staples have been fired; detect a malformed staple in the first row of staples; and if a malformed staple is detected in the first row of staples, set one of: a staple height for the second row of staples to a second height, and an anvil gap for the second row of staples to a second gap based on the sensed parameter. set one of: a staple height of the first and second rows of staples to a first height, and an anvil gap for the first row of staples to a first gap, wherein a staple height of the first or second row of staples is a height of said staples after said staples have been fired; detect a malformed staple in the first row of staples; and if a malformed staple is detected in the first row of staples, set one of: a staple height for the second row of staples to a second height, and an anvil gap for the second row of staples to a second gap based on the sensed parameter.