Autofill BG IDs