Modify task index