Added ability to set priority