Thread control.