Changed predict so it will use the piPred function.