Priority function added.