Draft of the prediction code.