Add priority property to tasks.
Apply API change.