Added initial version of the PredictionEngine.