Adapated prediction to pressagio master.