ModemWorker: refactoring