Cleaned code inside WorkerConnection