Trying to get tpl to work as a priority scheduler