Start to add in prediction code