Init thread