Improve key sending logic, implement minimal inifile loading.