A surgical device comprising:an adapter assembly (200) including a first storage device (407);an end effector configured to couple to a distal portion of the adapter assembly, the end effector including a second storage device (407); anda handle assembly (100) configured to couple to a proximal portion of the adapter assembly, the handle assembly including:a power source (144);a motor (152) coupled to the power source, the motor configured to actuate at least one of the adapter assembly or the end effector; anda controller (143) configured to communicate with the first and second storage devices.