Update code for the new fairshare algorithm.