Add the possibility to set the resource priority.