Giving priority to events