Syncing Buddypress group ID's to Membership ID's.

Hello!

I am currently working on a WP membership site that uses BuddyPress and Membership. Great plugin BTW

Now, what I need to do is somehow