Getting the proper ID for RG's.