Where is `$gid` initialized?