Adding some logging. Reworking async worker loop.