A prosthesis or an orthosis and a method of controlling movable components of the same. The prosthesis or orthosis comprises a plurality of movable components, each component being movable by a respective motor and a control device operative to determine when movement of at least a first component is arrested when the at least first component bears against a surface, and to move one or more further components with respective one or more further motors so that each subsequent component is moved upon determination that the movement of the preceding component is arrested when the preceding component bears against a surface.