Added a method to set priority

It is now possible to define priorities