When is friction helpful?