This seems to be worker initialization, why was it moved from constructor.