Implemented Predict/Complete Substitution