Added keycheck call to set api key correctly