public void configCheck() {
        new File(directory).mkdir();
        if (!file.exists()) {
            try {
                OKLogger.info("Attempting to create configuration file...");
                file.createNewFile();
                addDefaults();
                OKLogger.info("Configuration file successfully created.");
            } catch (Exception ex) {
                ex.printStackTrace();
                OKLogger.error("Erorr creating configuration file.");
            }
        } else {
            OKLogger.info("Attempting to load configuration file...");
            loadkeys();
            OKLogger.info("Configuration file successfully loaded.");
        }
    }