Add. pass cfunctions to child thread.