Changed multiPredict function to fix an error.