A container for use in a dispensing system is disclosed. The container comprises a body, a linkage element movably attached to the body, a control module, and an actuator comprising a memory wire having a length and a terminator that is attached to the memory wire. The linkage element has a first position and a second position, and the actuator is mechanically coupled to the linkage element. The control module is attached to the body and comprises a contact element. The terminator is attached to the body and electrically coupled to the contact element, wherein the electrical coupling between the memory wire and the contact element is mechanically compliant such that the position of the terminator relative to the body is invariant when the position of the control module relative to the body varies.