Added some priority functions