Added code when predictor doesn't work