Added practice invitations and changed referral creation