Added thread C script