Worker thread