Adding required setting key; adding break in selecting matching api_key