Added profile parameter to TWC_CHECK_FRIEND_NUMBER macro.