Cleaner code for setting the results model