Wraps inserts in task.