Shape shifting in the control of protein function