Make improvements to invited_users code.