Updating the task list code