Methods for selectively attaching a shaft assembly to a handle of a surgical instrument and an arm of a surgical robot are disclosed. A system comprising a shaft assembly, a surgical instrument comprising a handle, and a surgical robot comprising an arm, wherein the shaft assembly is configured to be attached to the handle of the surgical instrument and, alternatively, the arm of the surgical robot is also disclosed.