$modes was intedned to avoid calling og_roles when the rid wasn't going to be used.  Comment redacted!