Added predictor function, need to add components