Changed method call to load api key