Adding Priority support for Task