Main and Worker thread created.