Added ability to set priority on an existing task.