Update task.