Code generation of spec files is currently done serially, it should be done concurrently using wait groups.