1. A method for performing a surgical procedure wherein performing the surgical procedure comprises controlling a surgical instrument, comprising: detecting surgical events within a surgical environment; assigning a desired function to at least one detected surgical event; translating each desired function into a software instruction set for subsequent use in performing the surgical procedure; and communicating sets of instructions to alter remaining portions of the surgical procedure by dynamically adjusting surgical instrument parameters.