Probably move this to below `send_invitations` so that it's clearer as to where it's being used.