Thread target.