The present invention relates to a method of controlling a movable component of a prosthesis or orthosis. The method (100) comprises moving the component by means of a motor (102) and determining when movement of the component is arrested when the component bears against a surface (104, 106). Thereafter a plurality of driving electrical pulses are applied to the motor (110) in dependence on the determination and when movement of the component is arrested to thereby drive the motor so as to cause the component to bear against the surface with greater force.