Small optimization in IG generation.