More code to round out the recommendation calculation