Add the $gid parameter, so that a gid can be specified if $create_group = false