Removing the code to send invitation from here.