Attempts to fix send logs functionality.
Minor fixes, added some compatibility checks.