Completed sending invites. needs code review