Added Buddypress functions