Unfolded and intermediate states of PrP play a key role in the mechanism of action of an antiprion chaperone