Added task merging