What does the worker thread do?