Refactored update scripts for wikipedia and prediction.