Initial Prediction mechanism

Seems to be working, further testing is required