Added priority to tasks.