A surgical system for use in a surgical theater is disclosed. The surgical system comprises a surgical tool and a surgical hub. The surgical tool comprises a motor, a motor controller in signal communication with the motor, and an end effector configured to perform an end effector function. The end effector is operably responsive to the motor. The surgical hub is in signal communication with the motor controller. The surgical hub is configured to detect a contextual cue within the surgical theater. The motor controller is configured to adjust an operating parameter of the motor based on the contextual cue detected by the surgical hub.