implemented completion of task function.
Merge branch 'comp_func'