logging added to Dongle.py