Fix imports.
Pass entire id_map to start_groups.