Added priority support to events