Cleaned up referrals accounting