First run of naive bayes.