Taskthread

Merge task thread in