Added new functions for FrequentButterflies.