Some code so we will be able to use cached activities for recommendations in the future.