Add priorities to tasks