A surgical device (10) has a jaw assembly (400) with a first jaw and a second jaw, a pivoting linkage (500), and a camming assembly configured to pivot the jaw assembly. A cam slot (526) having a first portion (526a), a second portion (526b), and a third portion (526c) may have a Y shaped configuration. A flexible shaft (202) allows further pivoting of the jaw assembly.