Threading pre-processing