Prediction thread