Interface improvement. Added WorkerThread class