Merge the tasks