Revamped WebPredict code