Update task variables