A surgical system, comprising a handle assembly (112) having a controller (121a), the controller having a memory and at least one program, the handle assembly having at least one button, an adapter assembly (114) and a loading unit (116), the controller assigning a function to the at least one button.