Fix issue with priorities not being honored properly.