Added prediction to the controller