Moved API-key loading into library