Adding option to choose results from naiive or weighting for
all of the helper functions.